/* =========================================
   FETIWA — Coming Soon Landing Page
   Indigo-Violet + Warm Gold — v3.0
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Backgrounds — neutral charcoal, no blue tint */
    --bg-dark: #09090f;
    --bg-medium: #111118;
    --bg-elevated: #18181f;
    --bg-glass: rgba(17, 17, 24, 0.65);

    /* Primary — Indigo-Violet */
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-glow: rgba(124, 58, 237, 0.2);
    --primary-subtle: rgba(124, 58, 237, 0.08);

    /* Accent — Warm Gold */
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.15);
    --accent-subtle: rgba(245, 158, 11, 0.08);

    /* Text */
    --text-white: #f4f4f6;
    --text-grey: #a1a1aa;
    --text-muted: #52525b;

    /* Semantic */
    --success: #34d399;
    --error: #d97706;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-primary: rgba(124, 58, 237, 0.15);
    --border-accent: rgba(245, 158, 11, 0.15);

    /* System */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --radius: 20px;
    --radius-sm: 14px;
}

/* Honeypot anti-bot — invisible to humans */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Screen reader only — accessible but invisible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 28px;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
    background: rgba(9, 9, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.navbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-white);
    letter-spacing: -1px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-links a {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-grey);
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-links a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}

.navbar-cta {
    background: linear-gradient(135deg, var(--primary), #6d28d9) !important;
    color: var(--text-white) !important;
    font-weight: 600 !important;
    padding: 9px 22px !important;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.navbar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary), #6d28d9) !important;
}

/* Hamburger toggle — mobile only */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.navbar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-grey);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.open span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
    .navbar-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(9, 9, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 16px 28px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    .navbar-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-links a {
        width: 100%;
        padding: 14px 18px;
        font-size: 0.95rem;
    }

    .navbar-cta {
        text-align: center;
        margin-top: 8px;
    }

    .navbar-toggle {
        display: flex;
    }
}

/* --- Particles Background --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.35;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-dark);
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 35%;
    left: 50%;
    width: 900px;
    height: 900px;
    background:
        radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-medium));
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.badge-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 36px;
    animation: pulse-badge 3s ease-in-out infinite;
    background: var(--accent-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.badge-coming-soon::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink-dot 1.5s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 24px 6px rgba(245, 158, 11, 0.08); }
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 28px;
}

.hero-tagline {
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    color: var(--text-grey);
    margin-bottom: 16px;
    font-weight: 300;
    letter-spacing: -0.2px;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 22px;
    height: 36px;
    border: 1.5px solid var(--text-muted);
    border-radius: 11px;
    position: relative;
    opacity: 0.4;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 7px;
    background: var(--accent);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 20px; opacity: 0.2; }
}

/* --- Section Base --- */
.section {
    position: relative;
    padding: 110px 0;
    z-index: 1;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-grey);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 64px;
    line-height: 1.7;
}

/* --- Problem Section --- */
.section-problem {
    background: var(--bg-medium);
    position: relative;
}

.section-problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

.section-problem .section-title {
    margin-bottom: 64px;
}

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

.problem-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.25), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.problem-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.problem-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 119, 6, 0.2);
    background: rgba(217, 119, 6, 0.03);
    box-shadow: 0 12px 40px rgba(217, 119, 6, 0.06);
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--error);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.problem-card:hover .problem-icon {
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.2);
}

.problem-icon svg {
    width: 26px;
    height: 26px;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

.problem-card p {
    color: var(--text-grey);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* --- Features Section --- */
.section-features {
    background: var(--bg-dark);
    position: relative;
}

.section-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

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

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-primary);
    box-shadow: 0 16px 48px var(--primary-glow);
    background: var(--primary-subtle);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(167, 139, 250, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(167, 139, 250, 0.12));
    border-color: rgba(124, 58, 237, 0.3);
    transform: scale(1.05);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--text-grey);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* --- CTA / Email Section --- */
.section-cta {
    background: var(--bg-medium);
    position: relative;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

.cta-box {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 28px;
    padding: 60px 44px;
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.25), rgba(124, 58, 237, 0.2), transparent);
}

.cta-title {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.cta-subtitle {
    color: var(--text-grey);
    font-size: 0.95rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

.email-form {
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
}

.form-group input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.form-group button {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), #6d28d9);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.25);
}

.form-group button:active {
    transform: translateY(0);
}

.form-group button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loader[hidden] {
    display: none;
}

.btn-loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--text-white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form messages */
.form-message {
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    animation: slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-message.success {
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.15);
    color: var(--success);
}

.form-message.error {
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.15);
    color: var(--error);
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-privacy {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.2px;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 64px 24px 44px;
    background: var(--bg-dark);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .hero {
        padding: 60px 20px;
    }

    .section {
        padding: 80px 0;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group button {
        width: 100%;
        padding: 16px;
    }

    .cta-box {
        padding: 40px 24px;
        border-radius: var(--radius);
    }

    .problem-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        display: none;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 3rem;
    }

    .badge-coming-soon {
        font-size: 0.7rem;
        padding: 8px 18px;
        letter-spacing: 2px;
    }
}
