/* ========================================
   KYNO — Website Styles
   Design System: Dark theme, #2DD4BF accent
   ======================================== */

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

:root {
    --bg: #0A0A0A;
    --bg-surface: #141414;
    --bg-card: #1A1A1A;
    --bg-card-hover: #222222;
    --border: #2A2A2A;
    --text: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --accent: #2DD4BF;
    --accent-glow: rgba(45, 212, 191, 0.15);
    --accent-hover: #26bfad;
    --push: #F59E0B;
    --pull: #3B82F6;
    --legs: #22C55E;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-full: 100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ========== NAV ========== */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1100px; margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { width: 32px; height: 32px; border-radius: 8px; }
.nav-logo-text { font-size: 20px; font-weight: 800; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text); opacity: 1; }
.nav-cta {
    color: var(--bg) !important;
    background: var(--accent);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover); opacity: 1; }

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite alternate;
}
@keyframes glow-pulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}
.hero-container {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 80px;
    width: 100%;
}
.hero-content { flex: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-glow);
    border: 1px solid rgba(45, 212, 191, 0.3);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero-title {
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero-title-accent {
    background: linear-gradient(135deg, var(--accent), #60E8D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 440px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 48px; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 4px 24px rgba(45, 212, 191, 0.3);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(45, 212, 191, 0.4); }
.btn-lg { padding: 16px 36px; font-size: 17px; }

.hero-stats {
    display: flex; align-items: center; gap: 32px;
}
.hero-stat { text-align: center; }
.hero-stat-value { display: block; font-size: 28px; font-weight: 800; color: var(--text); }
.hero-stat-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Phone mockup */
.hero-phone { flex-shrink: 0; }
.phone-frame {
    width: 280px; height: 560px;
    background: var(--bg-card);
    border-radius: 40px;
    border: 2px solid var(--border);
    padding: 12px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px var(--accent-glow);
    animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.phone-notch {
    width: 100px; height: 24px;
    background: var(--bg);
    border-radius: 0 0 16px 16px;
    margin: 0 auto 16px;
}
.phone-screen { padding: 0 12px; }
.phone-mock-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.phone-mock-greeting {
    font-size: 18px; font-weight: 700; color: var(--text);
}
.phone-mock-greeting em {
    font-style: italic; color: var(--text-secondary); font-weight: 300;
}
.phone-mock-streak {
    font-size: 16px; font-weight: 700;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}
.phone-mock-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 8px;
}
.phone-mock-card-accent {
    background: var(--accent);
    border-color: var(--accent);
}
.phone-mock-card-title { font-size: 14px; font-weight: 700; color: var(--text); }
.phone-mock-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.phone-mock-card-title-w { font-size: 14px; font-weight: 700; color: var(--bg); }
.phone-mock-card-sub-w { font-size: 11px; color: rgba(0,0,0,0.6); margin-top: 2px; }
.phone-mock-section {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    margin: 16px 0 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.phone-mock-activity {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.phone-mock-activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.phone-mock-activity-title { font-size: 13px; font-weight: 600; color: var(--text); }
.phone-mock-activity-sub { font-size: 11px; color: var(--text-muted); }

/* ========== FEATURES ========== */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-subtitle { font-size: 17px; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.08);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ========== STATS SECTION ========== */
.stats-section { padding: 60px 0 100px; }
.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    margin: 0 auto;
}
.stats-card-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.stats-card-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }
.stats-bar {
    display: flex; height: 44px;
    border-radius: var(--radius-sm); overflow: hidden;
    margin-bottom: 16px;
}
.stats-bar-segment { display: flex; align-items: center; justify-content: center; }
.stats-bar-push { background: var(--push); }
.stats-bar-pull { background: var(--pull); }
.stats-bar-legs { background: var(--legs); }
.stats-legend {
    display: flex; justify-content: center; gap: 24px;
}
.stats-legend-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--text-secondary);
}
.stats-legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ========== DOWNLOAD ========== */
.download { padding: 80px 0; }
.download-content {
    text-align: center;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(45, 212, 191, 0.02));
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 24px;
    padding: 64px 32px;
}
.download-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.download-subtitle { font-size: 17px; color: var(--text-secondary); margin-bottom: 32px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ========== FOOTER ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}
.footer-content {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 28px; height: 28px; border-radius: 6px; }
.footer-brand-name { font-size: 16px; font-weight: 700; }
.footer-links { display: flex; gap: 24px; }
.footer-link { color: var(--text-muted); font-size: 13px; transition: color 0.2s; }
.footer-link:hover { color: var(--text); opacity: 1; }
.footer-copyright { color: var(--text-muted); font-size: 13px; }

/* ========== LEGAL PAGES ========== */
.legal-page {
    padding: 100px 0 60px;
    min-height: 100vh;
}
.legal-header { margin-bottom: 40px; }
.legal-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-header p { color: var(--text-muted); font-size: 14px; }
.legal-content {
    max-width: 720px;
}
.legal-content h2 {
    font-size: 20px; font-weight: 700;
    margin: 36px 0 12px;
    color: var(--accent);
}
.legal-content h3 {
    font-size: 16px; font-weight: 600;
    margin: 24px 0 8px;
}
.legal-content p, .legal-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--accent); }
.legal-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.legal-back:hover { color: var(--text); opacity: 1; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero-container { flex-direction: column; gap: 40px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-phone { order: -1; }
    .phone-frame { width: 240px; height: 480px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .nav-links { gap: 16px; }
    .nav-link:not(.nav-cta) { display: none; }
    .hero { padding: 80px 0 40px; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { gap: 20px; }
    .hero-stat-value { font-size: 22px; }
    .features-grid { grid-template-columns: 1fr; }
    .features { padding: 60px 0; }
    .stats-card { padding: 32px 24px; }
    .download-content { padding: 40px 20px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; gap: 12px; }
    .legal-content { padding:0; }
}
