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

:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --blue-50: #eff6ff;
    --blue-500: #3b82f6;
    --amber-50: #fffbeb;
    --amber-500: #f59e0b;

    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

.nav.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: var(--white);
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.logo-text {
    color: var(--gray-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background: linear-gradient(165deg, #f0fdf4 0%, #ffffff 40%, #f0fdf4 100%);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 163, 74, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 163, 74, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 70%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--green-50);
    border: 1px solid var(--green-200);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-700);
    margin-bottom: 24px;
}

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

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

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.08;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}

.btn-ghost {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-ghost:hover {
    border-color: var(--green-300);
    color: var(--green-700);
    background: var(--green-50);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-200);
}

/* Hero Visual — floating cards */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
}

.hero-visual-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.hero-card-1 { transform: translateX(0); }
.hero-card-2 { transform: translateX(24px); }
.hero-card-3 { transform: translateX(8px); }

.hero-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hc-green {
    background: var(--green-50);
    color: var(--green-600);
}

.hc-blue {
    background: var(--blue-50);
    color: var(--blue-500);
}

.hc-amber {
    background: var(--amber-50);
    color: var(--amber-500);
}

.hero-card-text {
    flex: 1;
}

.hero-card-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
}

.hero-card-sub {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.hero-card-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}

.status-green {
    background: var(--green-50);
    color: var(--green-700);
}

.status-amber {
    background: var(--amber-50);
    color: var(--amber-500);
}

/* ===== Section Common ===== */
.section-header {
    margin-bottom: 56px;
    max-width: 600px;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-desc {
    margin-top: 16px;
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== About ===== */
.about {
    padding: 100px 0;
}

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

.about-card {
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    background: var(--white);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-400), var(--green-600));
    opacity: 0;
    transition: opacity var(--transition);
}

.about-card:hover {
    border-color: var(--green-200);
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.08);
    transform: translateY(-2px);
}

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

.about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    color: var(--green-600);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== Products ===== */
.products {
    padding: 100px 0;
    background: var(--gray-50);
}

/* Product Row — alternating layout */
.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-100);
    margin-bottom: 24px;
    transition: all var(--transition);
    cursor: default;
}

a.product-row {
    cursor: pointer;
}

a.product-row:hover {
    border-color: var(--green-200);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.product-row--reverse {
    direction: rtl;
}

.product-row--reverse > * {
    direction: ltr;
}

.product-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--green-50);
    color: var(--green-700);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.product-badge--coming {
    background: var(--amber-50);
    color: var(--amber-500);
}

.product-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.product-desc {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green-600);
    transition: gap var(--transition);
}

a.product-row:hover .product-link {
    gap: 10px;
}

.product-link svg {
    transition: transform var(--transition);
}

a.product-row:hover .product-link svg {
    transform: translate(2px, -2px);
}

.product-link--coming {
    color: var(--gray-400);
}

/* ===== Product Visuals — Mockups ===== */
.product-visual {
    border-radius: var(--radius);
    overflow: hidden;
}

.pv-mockup {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.pv-mockup-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.pv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
}

.pv-dot:first-child { background: #ff5f57; }
.pv-dot:nth-child(2) { background: #febc2e; }
.pv-dot:nth-child(3) { background: #28c840; }

.pv-mockup-body {
    padding: 20px;
    min-height: 200px;
}

/* Terminal for Clawik */
.pv-terminal {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 20px;
    border-radius: 8px;
}

.pv-prompt {
    color: var(--green-400);
    margin-right: 8px;
}

.pv-line-green {
    color: var(--green-400);
}

.pv-blink {
    animation: blink 1s step-end infinite;
}

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

.pv-cursor {
    margin-top: 4px;
}

/* Timeline for DraftMotion */
.pv-mockup-body--motion {
    padding: 0;
    background: var(--white);
}

.pv-timeline {
    display: flex;
    flex-direction: column;
}

.pv-canvas {
    position: relative;
    height: 130px;
    background: linear-gradient(135deg, #f8fafc, #f0fdf4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
}

.pv-shape {
    animation: float 3s ease-in-out infinite;
}

.pv-shape-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-400), var(--green-600));
    animation-delay: 0s;
}

.pv-shape-rect {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue-500), #6366f1);
    animation-delay: 0.5s;
}

.pv-shape-tri {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid var(--amber-500);
    border-radius: 4px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.pv-tracks {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pv-track {
    height: 20px;
    background: var(--gray-50);
    border-radius: 4px;
    position: relative;
}

.pv-keyframe {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--green-500);
    border-radius: 2px;
}

.pv-track:nth-child(2) .pv-keyframe { background: var(--blue-500); }
.pv-track:nth-child(3) .pv-keyframe { background: var(--amber-500); }

/* Radar for PingPlane */
.pv-mockup-body--radar {
    padding: 0;
    background: #0c1222;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pv-radar {
    position: relative;
    width: 180px;
    height: 180px;
}

.pv-radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(34, 197, 94, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.pv-radar-ring-2 {
    width: 120px;
    height: 120px;
}

.pv-radar-ring-3 {
    width: 180px;
    height: 180px;
}

.pv-radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    transform-origin: 0 0;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 197, 94, 0.25) 40deg, transparent 40deg);
    animation: sweep 3s linear infinite;
    border-radius: 0 90px 0 0;
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pv-plane {
    position: absolute;
    color: var(--green-400);
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.5));
}

.pv-plane-1 { top: 25%; left: 60%; transform: rotate(-30deg); }
.pv-plane-2 { top: 55%; left: 25%; transform: rotate(45deg); }
.pv-plane-3 { top: 70%; left: 70%; transform: rotate(-60deg); }

/* ===== Footer ===== */
.footer {
    padding: 64px 0 0;
    border-top: 1px solid var(--gray-200);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-tagline {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a,
.footer-col span {
    font-size: 0.85rem;
    color: var(--gray-500);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--green-600);
}

.footer-bottom {
    border-top: 1px solid var(--gray-100);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-visual {
        padding: 0;
    }

    .hero-card-2 { transform: translateX(0); }
    .hero-card-3 { transform: translateX(0); }

    .section-title {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about {
        padding: 64px 0;
    }

    .products {
        padding: 64px 0;
    }

    .product-row {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }

    .product-row--reverse {
        direction: ltr;
    }

    .product-name {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }

    .hero-stats {
        gap: 16px;
    }
}

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

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .container {
        padding: 0 16px;
    }
}
