/* ============================================
   OneCounsel — Pre-launch Landing Page
   Light Theme
   ============================================ */

:root {
    --bg-primary: #f8f9fa;
    --bg-deep: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --accent-gold: #d4920a;
    --accent-gold-glow: rgba(212, 146, 10, 0.25);
    --accent-teal: #007a7e;
    --accent-teal-light: #00a5aa;
    --accent-teal-glow: rgba(0, 122, 126, 0.15);
    --muted: #9ca3af;
    --border-light: rgba(0, 0, 0, 0.08);
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-family: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Ambient Background Glows --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 15% 50%, rgba(0, 122, 126, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(212, 146, 10, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 50% 90%, rgba(0, 122, 126, 0.03) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* --- Subtle Noise Texture --- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* --- Canvas --- */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- UI Layer --- */
.ui-layer {
    position: relative;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

/* --- Top Bar --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    background: rgba(248, 249, 250, 0.7);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border-light);
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.btn-contact {
    padding: 10px 24px;
    border-radius: 9999px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-contact:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    box-shadow: 0 0 24px rgba(0, 122, 126, 0.08);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 40px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(0, 122, 126, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(212, 146, 10, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0, 122, 126, 0.02) 0%, transparent 80%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
    max-width: 560px;
    position: relative;
}

.hero-text::before {
    content: '';
    position: absolute;
    inset: -80px -120px;
    background: radial-gradient(ellipse at center, rgba(248, 249, 250, 0.6) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-visual {
    min-height: 400px;
}

.hero-headline {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

/* Gold accent line above headline */
.hero-headline::before {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), rgba(0, 122, 126, 0.3));
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
}

/* CTA button shimmer */
.hero-cta {
    position: relative;
    overflow: hidden;
}

.hero-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 122, 126, 0.12), transparent);
    animation: ctaShimmer 4s ease-in-out infinite;
}

@keyframes ctaShimmer {
    0%, 80%, 100% { left: -100%; opacity: 0; }
    85% { opacity: 1; }
    95% { left: 150%; opacity: 1; }
    96% { opacity: 0; }
}

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

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--accent-teal));
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 0.6; transform: scaleY(1); transform-origin: top; }
}

/* --- Sections --- */
.section-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

/* --- Features Section --- */
.section-features {
    padding: 100px 40px 60px;
    pointer-events: auto;
    position: relative;
    background: var(--bg-primary);
}

.features-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.features-tagline {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 560px;
    margin: 0 auto 60px;
}

/* --- Card Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 122, 126, 0.15);
}

.card-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.card-icon-gold {
    background: var(--accent-gold);
    box-shadow: 0 0 12px rgba(212, 146, 10, 0.3);
}

.card-icon-teal {
    background: var(--accent-teal);
    box-shadow: 0 0 12px rgba(0, 122, 126, 0.3);
}

.card-icon-dark {
    background: var(--text-primary);
    box-shadow: 0 0 12px rgba(26, 26, 46, 0.15);
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #374151;
}

/* --- Features CTA --- */
.features-cta {
    text-align: center;
    padding: 40px 0 0;
}

.cta-spacer {
    display: none;
}

/* --- CTA --- */
.cta-headline {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.text-gold {
    color: var(--accent-teal);
    -webkit-text-fill-color: var(--accent-teal);
}

.cta-sub {
    font-size: 18px;
    color: #374151;
    margin-bottom: 36px;
    line-height: 1.6;
}

.btn-cta {
    display: inline-block;
    padding: 16px 44px;
    border-radius: 9999px;
    border: 1px solid var(--accent-teal);
    background: transparent;
    color: var(--accent-teal);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.02em;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta:hover {
    background: var(--accent-teal);
    color: #ffffff;
    box-shadow:
        0 0 40px rgba(0, 122, 126, 0.15),
        0 0 80px rgba(0, 122, 126, 0.05);
    transform: translateY(-2px);
}

.btn-cta:active {
    transform: translateY(0);
}

.micro-line {
    margin-top: 24px;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* --- Scroll Reveal System --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* --- Page Load Animation --- */
.hero-animate {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-delay-1 { animation-delay: 0.55s; }
.hero-delay-2 { animation-delay: 0.8s; }
.hero-delay-3 { animation-delay: 1.05s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Contact Overlay --- */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.contact-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Contact Panel --- */
.contact-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(32px) saturate(1.2);
    -webkit-backdrop-filter: blur(32px) saturate(1.2);
    border-left: 1px solid var(--border-light);
    z-index: 210;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 48px 36px;
    overflow-y: auto;
}

.contact-panel.active {
    transform: translateX(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.panel-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.btn-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-close:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 122, 126, 0.1);
    background: #ffffff;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: var(--accent-teal);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.btn-submit:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 24px rgba(0, 122, 126, 0.2);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reassurance {
    margin-top: 20px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.success-message {
    text-align: center;
    padding: 60px 0;
}

.success-message h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.success-message p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    width: 100%;
    padding: 20px 40px;
    pointer-events: auto;
    position: relative;
    background: var(--bg-primary);
}

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

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-tagline {
    display: none;
}

.footer-bottom {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-teal);
    border-color: var(--accent-teal);
    transform: translateY(-1px);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* --- Selection Color --- */
::selection {
    background: rgba(0, 122, 126, 0.15);
    color: var(--text-primary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body::before {
        background:
            radial-gradient(ellipse 100% 60% at 50% 30%, rgba(0, 122, 126, 0.04) 0%, transparent 70%),
            radial-gradient(ellipse 80% 50% at 50% 80%, rgba(212, 146, 10, 0.02) 0%, transparent 60%);
    }

    .top-bar {
        padding: 12px 20px;
    }

    .logo-img {
        height: 40px;
    }

    .btn-contact {
        padding: 10px 20px;
        font-size: 13px;
    }

    .hero {
        padding: 0 24px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
    }

    .hero-visual {
        display: none;
    }

    .hero-headline::before {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-headline {
        font-size: 40px;
        letter-spacing: -0.025em;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-cta {
        display: inline-block;
    }

    .btn-cta {
        padding: 14px 36px;
        font-size: 14px;
    }

    .section-features {
        padding: 64px 24px 40px;
    }

    .features-tagline {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 48px;
    }

    .card {
        padding: 28px 24px;
    }

    .cta-spacer {
        display: none;
    }

    .cta-headline {
        font-size: 32px;
    }

    .cta-sub {
        font-size: 16px;
    }

    .contact-panel {
        width: 100%;
        padding: 36px 24px;
    }

    .scroll-indicator {
        bottom: 32px;
        z-index: 1;
    }

    .footer {
        padding: 16px 20px;
    }

    .footer-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .footer-logo {
        height: 22px;
    }

    .footer-bottom {
        font-size: 11px;
        order: 3;
        width: 100%;
        text-align: center;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .hero-headline {
        font-size: 56px;
    }

    .logo-img {
        height: 48px;
    }

    .section-features {
        padding: 80px 32px 48px;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .cta-headline {
        font-size: 40px;
    }
}
