/* KYNER Landing v1.0 - Commercial grade */

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

:root {
    --navy-50: #f0f4f8;
    --navy-100: #d4dde8;
    --navy-200: #a8b6c8;
    --navy-300: #7c8fa8;
    --navy-500: #243e60;
    --navy-700: #0f1f33;
    --navy-800: #0a1628;
    --navy-900: #050d18;

    --gold-300: #f4d97e;
    --gold-400: #ecc04e;
    --gold-500: #d4af37;
    --gold-600: #b8951f;

    --bg: #ffffff;
    --bg-alt: #f8f9fb;
    --text: #0a1628;
    --text-muted: #5b6373;
    --text-faint: #8b92a5;
    --border: #e5e7eb;

    --green: #10b981;
    --blue: #3b82f6;

    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05);
    --shadow: 0 1px 3px rgba(10, 22, 40, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 12px 32px -8px rgba(10, 22, 40, 0.12);
    --shadow-xl: 0 24px 60px -12px rgba(10, 22, 40, 0.18);

    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ============ Logo ============ */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    color: var(--navy-800);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.logo-text span { color: var(--gold-500); }

.foot .logo-text { color: white; }
.foot .logo-text span { color: var(--gold-500); }

/* ============ Nav ============ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    margin-left: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 200ms;
}

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

.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ============ Buttons ============ */
.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 200ms;
    white-space: nowrap;
}

.btn-primary {
    background: var(--navy-800);
    color: white;
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--navy-300); background: var(--navy-50); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 0.5rem 0.875rem;
}

.btn-lg { padding: 0.875rem 1.625rem; font-size: 0.95rem; }
.btn-block { width: 100%; padding: 0.75rem 1.25rem; }

/* ============ Hero ============ */
.hero {
    position: relative;
    padding: 6rem 1.5rem 4rem;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(36, 62, 96, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content { max-width: 580px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-600);
    padding: 0.4rem 0.875rem;
    border-radius: 100px;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--navy-800);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.grad-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* App preview */
.hero-visual { position: relative; }

.app-preview {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: 0 30px 80px -20px rgba(10, 22, 40, 0.5);
    transform: perspective(1500px) rotateY(-8deg) rotateX(2deg);
    transition: transform 400ms;
}

.app-preview:hover { transform: perspective(1500px) rotateY(-4deg) rotateX(1deg); }

.preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
}

.preview-dots {
    display: flex;
    gap: 0.4rem;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.preview-body {
    background: var(--navy-800);
    border-radius: 18px;
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
    color: white;
}

.preview-ring {
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
}

.preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.preview-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
}

.preview-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.preview-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.preview-stat-value span { font-size: 0.7rem; opacity: 0.7; font-weight: 500; }

/* ============ Sections ============ */
section { padding: 6rem 1.5rem; }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 4rem; }

.section-eyebrow {
    font-size: 0.8rem;
    color: var(--gold-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--navy-800);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.section-subtitle em { color: var(--text); font-style: normal; font-weight: 600; }

/* ============ Logos strip ============ */
.logos {
    padding: 3rem 1.5rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.logos-container { text-align: center; }

.logos-label {
    font-size: 0.8rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
}

.logo-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 200ms;
}

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

/* ============ Problem ============ */
.problem { background: var(--bg); }

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.problem-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 200ms;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-500);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 0.75rem;
}

.problem-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============ Features ============ */
.features { background: var(--bg-alt); }

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

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 200ms;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============ How ============ */
.how { background: var(--bg); }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold-500);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============ Integrations detail ============ */
.integrations { background: var(--bg-alt); }

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.integration-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    transition: all 200ms;
}

.integration-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.integration-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.integration-name {
    font-weight: 600;
    color: var(--navy-800);
    font-size: 0.9rem;
}

.integration-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold-500);
    color: var(--navy-800);
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
}

.integrations-cta {
    text-align: center;
    color: var(--text-muted);
}

.integrations-cta a { color: var(--gold-600); font-weight: 600; }

/* ============ Pricing ============ */
.pricing { background: var(--bg); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 200ms;
}

.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.price-card.featured {
    border-color: var(--gold-500);
    box-shadow: 0 12px 32px -12px rgba(212, 175, 55, 0.4);
    transform: scale(1.02);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-500);
    color: var(--navy-800);
    padding: 0.25rem 0.875rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-800);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0.5rem 0;
}

.price-amount span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0 2rem;
}

.price-features li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-features li::before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
}

/* ============ Waitlist ============ */
.waitlist { background: var(--bg-alt); }

.waitlist-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    color: white;
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.waitlist-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.waitlist-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
}

.waitlist-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    position: relative;
}

.waitlist-subtitle strong {
    color: var(--gold-300);
    font-weight: 600;
}

.waitlist-form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.waitlist-form input {
    flex: 1;
    padding: 0.875rem 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: all 200ms;
}

.waitlist-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.waitlist-form input:focus { background: rgba(255, 255, 255, 0.12); border-color: var(--gold-500); }

.waitlist-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

/* ============ Final CTA ============ */
.final-cta {
    background: var(--navy-800);
    color: white;
    text-align: center;
    padding: 5rem 1.5rem;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.final-cta .btn-primary {
    background: var(--gold-500);
    color: var(--navy-800);
}

.final-cta .btn-primary:hover { background: var(--gold-400); }

/* ============ Footer ============ */
.footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-tagline {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-col h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 200ms;
}

.footer-col a:hover { color: var(--gold-500); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p { margin-bottom: 0.5rem; color: rgba(255, 255, 255, 0.4); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-container { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { max-width: 500px; margin: 0 auto; }
    .app-preview { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-trust { flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .nav-actions .btn-ghost { display: none; }
    .hero { padding: 4rem 1.5rem 3rem; }
    section { padding: 4rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .waitlist-form { flex-direction: column; }
}


/* ============ Scroll animations ============ */
.animate-in {
    opacity: 0.001;  /* effectively invisible but takes up space */
    transform: translateY(20px);
}
.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Don't hide for users who don't scroll - make visible if scroll hasn't happened */
@media (prefers-reduced-motion: reduce) {
    .animate-in { opacity: 1; transform: none; }
}
