/* 
   KoachAI Design System & Styling
   Premium, Minimal, Dark SaaS Aesthetic
*/

:root {
    /* Color Palette */
    --bg-main: #04070a;
    --bg-secondary: #0a0f15;
    --primary: #022B3A;
    --primary-light: #1F7A8C;
    --accent: #00E5FF;
    --accent-glow: rgba(0, 229, 255, 0.4);

    --text-main: #ffffff;
    --text-muted: #8b9eb0;
    --text-dark: #cbd5e1;

    --border-color: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Canvas & Motion Elements */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0.5;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.el-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float1 20s infinite ease-in-out;
}

.el-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float2 25s infinite ease-in-out reverse;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50px, 30px);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(60px, -40px);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.mb-15 {
    margin-bottom: 15px;
}

.mt-15 {
    margin-top: 15px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    border-radius: 100px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-main);
}

.btn-primary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.glow-effect {
    box-shadow: 0 0 20px var(--accent-glow);
}

.glow-effect:hover {
    box-shadow: 0 0 30px var(--accent-glow), 0 0 10px var(--text-main);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    padding: 24px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(4, 7, 10, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links auto {
    text-decoration: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Sections */
.section {
    padding: 140px 0;
    position: relative;
}

.dark-bg {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 72px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-dark);
    margin-bottom: 24px;
}

.badge-teal {
    background: rgba(31, 122, 140, 0.15);
    border-color: rgba(31, 122, 140, 0.3);
    color: var(--accent);
}

/* Hero Section */
.hero {
    padding: 220px 0 140px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Glass & UI Elements */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
}

.icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.error-icon {
    color: #ff5e5e;
}

.gradient-icon {
    color: var(--accent);
}

/* Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.minimal-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.minimal-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Solution Section */
.solution-section {
    padding: 0 0 140px;
}

.solution-panel {
    padding: 80px 40px;
    border-color: rgba(31, 122, 140, 0.3);
    background: radial-gradient(circle at 50% 0%, rgba(31, 122, 140, 0.1) 0%, transparent 60%), rgba(255, 255, 255, 0.02);
}

.solution-text {
    font-size: 1.4rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Platform Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    padding: 48px;
    background: var(--bg-secondary);
}

.feature-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-decoration {
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.feature-card:hover .card-decoration {
    opacity: 0.2;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Workflow Timeline (5 Steps Horizontal) */
.workflow-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding-top: 20px;
}

.timeline-connector {
    flex: 1;
    height: 1px;
    background: var(--glass-border);
    margin-top: 25px;
    min-width: 40px;
}

.workflow-step-5 {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    z-index: 2;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.step-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.workflow-step-5 h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
}

/* Market Opportunity */
.market-section {
    padding: 100px 0;
}

.market-stat {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
}

.market-title {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.market-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Contact / Demo Section */
.cta-section {
    padding: 160px 0;
    overflow: hidden;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-benefits {
    list-style: none;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.cta-benefits li svg {
    color: var(--accent);
}

.cta-form-wrapper {
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.glass-input-full {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.glass-input-full:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.large-orb {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(31, 122, 140, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background: #020305;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 350px;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-group h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.link-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.link-group a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.domain-text {
    font-family: monospace;
    color: var(--text-dark);
}

/* Animations & Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
    transition-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3D Hover container */
.3d-hover {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.3d-hover .card-inner {
    transition: transform 0.1s;
    transform: translateZ(20px);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .market-stat {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .workflow-timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding-left: 24px;
    }

    .workflow-step-5 {
        flex-direction: row;
        text-align: left;
        gap: 20px;
        flex: auto;
    }

    .step-icon {
        margin-bottom: 0;
    }

    .timeline-connector {
        width: 1px;
        height: 32px;
        margin: -16px 0 -16px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Legal Pages */
.legal-section {
    padding-bottom: 120px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
}

.legal-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.legal-content p {
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.legal-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
    color: var(--text-dark);
}

.legal-content li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 255, 170, 0.1);
    color: #00ffaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
    border: 1px solid rgba(0, 255, 170, 0.3);
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.success-message p {
    color: var(--text-muted);
    font-size: 1.05rem;
}