@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== Design Tokens ===== */
:root {
    --primary: #1068F8;
    --primary-light: #59A6FF;
    --primary-dark: #0A4FCC;
    --primary-glow: rgba(16, 104, 248, 0.20);
    --background: #FAFAFA;
    --bg-elevated: #FFFFFF;
    --bg-card: #FFFFFF;
    --border-color: rgba(0, 0, 0, 0.07);
    --ink: #18181B;
    --ink-muted: #71717A;
    --ink-subtle: #A1A1AA;
    --success: #10B981;
    --warning: #D97706;
    --error: #DC2626;
    --info: #2563EB;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(0, 0, 0, 0.07);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-border: rgba(0, 0, 0, 0.08);
    --nav-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.10);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--background);
    color: var(--ink);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2 {
    font-family: var(--font-main);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* ===== Utility ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.label-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
}

.section-light {
    background: #F4F4F5;
}

.section-dark {
    background: #F4F4F5;
    color: var(--ink);
}

/* ===== Grain Overlay ===== */
.grain-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 300px;
    opacity: 0.045;
    mix-blend-mode: overlay;
    border-radius: inherit;
}

/* ===== Glass Card ===== */
.glass-card {
    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: var(--shadow-card);
    padding: 1.5rem;
}

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-info {
    background: rgba(37, 99, 235, 0.12);
    color: var(--info);
}

.badge-neutral {
    background: rgba(107, 122, 144, 0.12);
    color: var(--ink-muted);
}

/* ===== Navbar ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    padding: 0 1rem;
}

.nav-pill {
    width: 100%;
    max-width: 1152px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1.25rem;
    border-radius: 9999px;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--nav-shadow);
}

.nav-logo img {
    height: 44px;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    color: var(--ink-muted);
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.05);
}

.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 224px;
    padding: 8px;
    border-radius: 16px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
}

/* Invisible bridge so mouse doesn't lose hover */
.nav-links .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-links .dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-right .btn-login {
    display: none;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    color: var(--ink-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-right .btn-login:hover {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.05);
}

.nav-right .btn-demo {
    display: none;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-right .btn-demo:hover {
    opacity: 0.9;
}

.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-muted);
    border-radius: 50%;
    transition: all 0.2s;
}

.hamburger:hover {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.05);
}

.hamburger svg {
    width: 20px;
    height: 20px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 76px;
    left: 1rem;
    right: 1rem;
    border-radius: 16px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);
    padding: 1rem;
    z-index: 99;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 12px;
    color: var(--ink-muted);
    transition: all 0.15s;
}

.mobile-menu a:hover {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu a.sub {
    padding-left: 2rem;
    font-size: 0.8125rem;
    color: var(--ink-subtle);
}

.mobile-menu .mobile-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--nav-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu .mobile-actions .btn-demo-mobile {
    width: 100%;
    padding: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    text-align: center;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }

    .nav-right .btn-login,
    .nav-right .btn-demo {
        display: block;
    }

    .hamburger {
        display: none;
    }
}

/* ===== Sections ===== */
.section-rounded {
    border-radius: 2.5rem;
    overflow: hidden;
    margin: 0 1rem;
}

.section-pad {
    padding: 4rem 0;
}

.section-pad-sm {
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .section-pad {
        padding: 7rem 0;
    }

    .section-pad-sm {
        padding: 3.5rem 0;
    }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    margin: 0 1rem;
    border-radius: 2.5rem;
    border: 1px solid var(--border-color);
}

.hero .hero-glows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 55% 45% at 20% 10%, rgba(16, 104, 248, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 90% 90%, rgba(16, 104, 248, 0.03) 0%, transparent 55%);
}

.hero .hero-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.hero .hero-watermark span {
    font-size: 22vw;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.03);
    letter-spacing: -0.07em;
    line-height: 1;
    user-select: none;
}

.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 1rem 3rem;
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 8rem 1.5rem 3rem;
        gap: 2.5rem;
    }
}

.hero-tag {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.25rem;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.hero p.hero-desc {
    font-size: 1.125rem;
    color: var(--ink-muted);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    background: var(--bg-card);
    color: var(--ink-muted);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    color: var(--ink);
    background: #F4F4F5;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    background: transparent;
    color: var(--ink-muted);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    color: var(--ink);
    border-color: var(--ink-muted);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 9999px;
    background: #0EA5E9;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-accent:hover {
    transform: scale(1.03);
}

.btn-accent .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
}

.btn-accent:hover .btn-icon {
    background: rgba(0, 0, 0, 0.3);
}

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 480px;
}

.stat-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(16, 104, 248, 0.04);
    border: 1px solid rgba(16, 104, 248, 0.08);
    backdrop-filter: blur(12px);
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.stat-card .stat-label {
    font-size: 0.6875rem;
    color: var(--ink-muted);
    font-weight: 500;
    margin-top: 2px;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        padding-top: 10rem;
        padding-bottom: 4rem;
    }
}

/* ===== Floating Terminal ===== */
.floating-terminal {
    display: none;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(9, 9, 11, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px -20px rgba(16, 104, 248, 0.12);
    animation: float-window 9s ease-in-out infinite;
}

@media (min-width: 1024px) {
    .floating-terminal {
        display: block;
    }
}

.terminal-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dots .dot-r {
    background: rgba(239, 68, 68, 0.7);
}

.terminal-dots .dot-y {
    background: rgba(234, 179, 8, 0.7);
}

.terminal-dots .dot-g {
    background: rgba(34, 197, 94, 0.7);
}

.terminal-title {
    font-size: 0.75rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.25);
    margin-left: 8px;
}

.terminal-body {
    padding: 1.25rem;
    font-family: monospace;
    font-size: 0.8125rem;
    line-height: 2;
}

.terminal-body .t-purple {
    color: #a78bfa;
}

.terminal-body .t-sky {
    color: #38bdf8;
}

.terminal-body .t-amber {
    color: #fbbf24;
}

.terminal-body .t-dim {
    color: rgba(255, 255, 255, 0.3);
}

.terminal-body .t-muted {
    color: rgba(255, 255, 255, 0.4);
}

.terminal-body .indent {
    padding-left: 1rem;
}

.terminal-body .indent2 {
    padding-left: 2rem;
}

.terminal-body .indent3 {
    padding-left: 3rem;
}

/* ===== Features Section ===== */
.features-grid {
    display: grid;
    gap: 4rem;
    align-items: start;
}

.features-sticky h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #18181B;
    margin-bottom: 1.5rem;
}

.features-sticky p {
    color: var(--ink-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 24rem;
    margin-bottom: 2.5rem;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
}

.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
    cursor: default;
}

.icon-card:hover {
    transform: scale(1.05);
}

.icon-card .icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 104, 248, 0.12);
}

.icon-card .icon-wrap svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.icon-card span {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-align: center;
}

/* Mock Dashboard */
.mock-dashboard {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(9, 9, 11, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dash-metric {
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-metric .dm-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.dash-metric .dm-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.dash-metric .dm-change {
    font-size: 10px;
    font-family: monospace;
    margin-top: 4px;
}

.dm-up {
    color: #34d399;
}

.dm-stable {
    color: #a78bfa;
}

.dash-chart {
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-chart .chart-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 56px;
}

.chart-bars .bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    background: rgba(255, 255, 255, 0.10);
    transition: height 1s ease;
}

.chart-bars .bar.active {
    background: #1068F8;
}

.dash-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.dash-status-item .status-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dash-status-item span {
    font-size: 0.75rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.4);
}

.dash-status-item .status-val {
    color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-sticky {
        position: sticky;
        top: 7rem;
    }
}

/* ===== Process / Productivity Section ===== */
.process-section {
    position: relative;
}

.process-section .grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

.process-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ink);
}

.step-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step-card {
    border-radius: 16px;
    padding: 1.75rem;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s;
}

.step-card:hover {
    box-shadow: var(--shadow-lg);
}

.step-card .step-num {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--ink-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.process-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

/* Code Window */
.code-window {
    display: none;
    border-radius: 16px;
    overflow: hidden;
    transform: rotate(-3deg);
    background: rgba(9, 9, 11, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px -20px rgba(16, 104, 248, 0.12);
}

@media (min-width: 1024px) {
    .code-window {
        display: block;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.code-body {
    padding: 1.25rem;
    font-family: monospace;
    font-size: 0.8125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.deployed-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(16, 104, 248, 0.12);
    border: 1px solid rgba(16, 104, 248, 0.30);
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: 600;
    color: #38bdf8;
    animation: float-badge 2.5s ease-in-out infinite;
}

.rounded-full {
    border-radius: 9999px !important;
}

/* ===== Products ===== */
.badge-pronto {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    backdrop-filter: blur(8px);
}

.products-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.product-card .product-visual {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.product-card .product-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.product-card .product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card .product-icon svg {
    width: 32px;
    height: 32px;
}

.product-card .product-fade {
    display: none;
}

.product-body {
    padding: 1.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-body .product-tagline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #18181B;
    margin-bottom: 0.5rem;
}

.product-body .product-desc {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-features {
    margin-bottom: 1.25rem;
    flex: 1;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #A1A1AA;
    margin-bottom: 6px;
}

.product-features li svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.product-btn {
    width: 100%;
    padding: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
}

.product-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.product-btn:disabled {
    cursor: default;
    transform: none;
}

/* ===== Timee Highlight ===== */
.timee-section {
    position: relative;
}

.timee-section .timee-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 104, 248, 0.06), transparent);
}

.timee-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.timee-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ink);
}

.timee-header h2 .timee-dot {
    color: #0EA5E9;
}

.timee-header h2 .timee-sub {
    color: var(--ink-muted);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.timee-header p {
    font-size: 1.125rem;
    color: var(--ink-muted);
    max-width: 36rem;
    line-height: 1.7;
}

.timee-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.15);
    display: inline-block;
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bento-card {
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-card);
}

.bento-card:hover {
    box-shadow: var(--shadow-lg);
}

.bento-card.span-2 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .bento-card.span-2 {
        grid-column: span 2;
    }
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.bento-card p {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bento-lines {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 2.5rem;
    opacity: 0.5;
}

.bento-line {
    height: 6px;
    border-radius: 9999px;
    background: rgba(16, 104, 248, 0.15);
}

.bento-card .stacked-icons {
    display: flex;
    gap: -12px;
    opacity: 0.8;
    flex-shrink: 0;
}

.stacked-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid #F4F4F5;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stacked-icon:first-child {
    margin-left: 0;
}

@media (min-width: 768px) {
    .timee-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .timee-header .timee-cta {
        display: block;
    }
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1.25rem;
}

.stars svg {
    width: 13px;
    height: 13px;
    fill: #fbbf24;
    color: #fbbf24;
}

.testimonial-card blockquote {
    color: #52525B;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.testimonial-card .t-author {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-card .t-author .t-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #27272A;
}

.testimonial-card .t-author .t-role {
    font-size: 0.75rem;
    color: #A1A1AA;
    margin-top: 2px;
}

/* ===== CTA ===== */
.cta-section {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
}

.cta-section .cta-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(16, 104, 248, 0.04), transparent);
}

.cta-content {
    position: relative;
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--ink-muted);
    max-width: 36rem;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ===== Partners ===== */
.partners {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-color);
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    opacity: 0.3;
}

.partners-logos span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: -0.01em;
}

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: var(--background);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.footer-brand span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.footer-col h3 {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--ink-muted);
    transition: color 0.2s;
}

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

.footer-bottom {
    margin-top: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--ink-subtle);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--ink-subtle);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--ink);
}

/* ===== Inner Pages ===== */
.page-section {
    padding: 8rem 0 5rem;
}

.page-section .page-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.page-section .page-desc {
    font-size: 1.125rem;
    color: var(--ink-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Values grid */
.values-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.value-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 104, 248, 0.1);
}

.value-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.value-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* Team */
.team-section {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.02);
}

.team-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card .team-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid rgba(16, 104, 248, 0.2);
    background: #f4f4f5;
}

.team-card .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
}

.team-card .team-role {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.team-card .team-desc {
    font-size: 0.875rem;
    color: var(--ink-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.team-social {
    display: flex;
    gap: 0.75rem;
}

.team-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    color: var(--ink-muted);
    transition: all 0.2s;
}

.team-social a:hover {
    background: rgba(16, 104, 248, 0.1);
    color: var(--primary);
}

.team-social a svg {
    width: 16px;
    height: 16px;
}

/* Services */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-card-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .service-card-row {
        flex-direction: row;
        align-items: flex-start;
    }

    .service-card-row.reverse {
        flex-direction: row-reverse;
    }
}

.service-card-row .service-info,
.service-card-row .service-features-list {
    flex: 1;
}

.service-icon-lg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon-lg svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.service-info h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1rem;
}

.service-info p {
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features-list ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--ink-muted);
}

.feature-dot-wrap {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 104, 248, 0.1);
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* Cases */
.cases-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.case-card {
    transition: border-color 0.2s;
}

.case-card:hover {
    border-color: rgba(16, 104, 248, 0.2);
}

.case-card .case-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.case-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.case-card .case-desc {
    font-size: 0.875rem;
    color: var(--ink-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-results li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ink);
}

.result-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
}

/* Resources */
.resources-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.resource-card {
    cursor: pointer;
    transition: border-color 0.2s;
}

.resource-card:hover {
    border-color: rgba(16, 104, 248, 0.2);
}

.resource-card .resource-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.resource-card .resource-meta svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.resource-card .resource-meta span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

.resource-card .resource-meta .resource-tag {
    margin-left: auto;
}

.resource-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.resource-card:hover h3 {
    color: var(--primary);
}

.resource-card p {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* Contact */
.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.875rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--ink);
    font-family: var(--font-main);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 104, 248, 0.1);
}

.info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.info-card h3 {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.info-card p {
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.btn-sm {
    display: inline-flex;
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--ink);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-sm:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

.fade-in-delay-4 {
    transition-delay: 0.4s;
}

.fade-in-delay-5 {
    transition-delay: 0.5s;
}

/* ===== Keyframes ===== */
@keyframes float-window {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    38% {
        transform: translateY(-12px) rotate(0.4deg);
    }

    72% {
        transform: translateY(-6px) rotate(-0.3deg);
    }
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.blink {
    animation: blink-cursor 1.1s step-end infinite;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--ink-subtle);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink-muted);
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}