/* 
   FREILOG LANDING PAGE STYLES
   Theme: Corporate Dark Mode / Premium Tech
*/

:root {
    /* Colors */
    --bg-primary: #0f172a;
    /* Deep Navy */
    --bg-secondary: #1e293b;
    /* Slate 800 */
    --bg-tertiary: #334155;
    /* Slate 700 */

    --accent-primary: #3b82f6;
    /* Blue 500 */
    --accent-hover: #2563eb;
    /* Blue 600 */
    --accent-glow: rgba(59, 130, 246, 0.5);

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
}

.btn-block {
    width: 100%;
}

/* HEADER */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--text-main);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* LANGUAGE SWITCHER */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 2px 4px;
}

.lang-switch button:hover {
    color: var(--text-main);
}

.lang-switch button.active {
    color: var(--accent-primary);
    font-weight: 700;
}

.lang-switch span {
    opacity: 0.5;
}

/* HERO SECTION */
.hero-section {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.play-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.video-placeholder:hover .play-icon {
    background: var(--accent-primary);
    transform: scale(1.1);
}

/* MODULES SECTION */
.modules-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.module-card {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* Glassmorphism hover effect */
.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.highlight-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.module-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.module-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* CONNECTIVITY SECTION */
.connectivity-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Pseudo element for decoration */
.connectivity-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05), transparent 70%);
    z-index: 0;
}

.connectivity-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.connectivity-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.portals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
}

.portal-item {
    background: rgba(15, 23, 42, 0.6);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    text-align: left;
}

.portal-item h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.portal-item ul li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
}

.portal-item ul li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.features-extra {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-weight: 500;
    color: var(--text-main);
    flex-wrap: wrap;
}

.feature-item {
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.95rem;
}

.feature-icon {
    color: var(--accent-primary);
}

/* WHY US SECTION */
.why-us-section {
    padding: 100px 0;
}

.why-us-grid {
    max-width: 800px;
    margin: 0 auto;
}

.why-us-text h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.why-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.why-list li:hover {
    border-color: var(--glass-border);
    background: var(--bg-tertiary);
}

.why-list .icon {
    font-size: 2rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.why-list strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.why-list p {
    color: var(--text-muted);
}

/* CONTACT SECTION */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(to top, #0b1120, var(--bg-primary));
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.honeypot-container {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

/* FOOTER */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    background: #0b1120;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-promo {
    margin-top: 0.5rem !important;
    font-size: 0.85rem !important;
}

.footer-promo a {
    color: var(--accent-primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-promo a:hover {
    color: var(--text-main) !important;
    text-decoration: underline;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 24px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* MEDIA QUERIES */
@media (max-width: 900px) {
    .site-header {
        padding: 0 20px;
    }

    .main-nav,
    .header-container .btn {
        display: none;
        /* Simplification for this demo */
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 2px;
        background: var(--text-main);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-sub {
        margin: 0 auto 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .portals-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* SPINNER for Button Loading State */
.loader {
    display: none;
    /* JS will toggle */
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin-left: 10px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-loading .btn-text {
    display: none;
}

.btn-loading .loader {
    display: inline-block;
}

/* FORM FEEDBACK */
.form-feedback {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    /* Hidden by default */
}

.form-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}