/* AI Operating Strategies — public site. */

:root {
    color-scheme: light;
    --ink: #0f1c1a;
    --muted: #55645f;
    --faint: #8fa19b;
    --line: #dfe7e3;
    --paper: #f6f8f6;
    --panel: #ffffff;
    --teal: #0f766e;
    --teal-dark: #0a4f49;
    --teal-deep: #06332f;
    --teal-soft: #d9f3ef;
    --amber: #f59e0b;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-1: 0 1px 3px rgba(6, 51, 47, 0.08);
    --shadow-2: 0 18px 50px rgba(6, 51, 47, 0.16);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    margin: 0;
    overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3, p { margin: 0; }

/* ---------- Header ---------- */

.site-header {
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(246, 248, 246, 0.85);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr auto auto;
    min-height: 66px;
    padding: 0 clamp(16px, 4vw, 40px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-size: 15.5px;
    gap: 10px;
    text-decoration: none;
}

.brand img { height: 32px; width: 32px; }
.brand strong { font-weight: 800; }

.site-header nav { display: flex; gap: 26px; }

.site-header nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.site-header nav a:hover { color: var(--teal-dark); }

.header-cta {
    background: var(--teal);
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    padding: 9px 18px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.header-cta:hover { background: var(--teal-dark); }

/* ---------- Buttons ---------- */

.btn-primary, .btn-ghost, .btn-invert {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 750;
    gap: 9px;
    justify-content: center;
    padding: 12px 22px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.35);
    color: #fff;
}

.btn-primary:hover { box-shadow: 0 12px 32px rgba(15, 118, 110, 0.45); transform: translateY(-1px); }
.btn-primary svg { height: 17px; width: 17px; }

.btn-ghost {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn-invert { background: #fff; color: var(--teal-deep); }
.btn-invert:hover { transform: translateY(-1px); }

.big { font-size: 16px; padding: 14px 28px; }

/* ---------- Hero ---------- */

.hero {
    margin: 0 auto;
    max-width: 1100px;
    padding: clamp(48px, 8vw, 88px) 20px 30px;
    position: relative;
    text-align: center;
}

.hero-glow {
    background:
        radial-gradient(560px 300px at 50% 0%, rgba(15, 118, 110, 0.14), transparent 70%),
        radial-gradient(400px 260px at 82% 30%, rgba(245, 158, 11, 0.10), transparent 70%);
    left: 50%;
    max-width: 1200px;
    right: auto;
    top: -60px;
    transform: translateX(-50%);
    width: 100vw;
    height: 560px;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.hero-chip {
    background: var(--teal-soft);
    border: 1px solid #b5e6de;
    border-radius: 999px;
    color: var(--teal-dark);
    display: inline-block;
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 22px;
    padding: 7px 16px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.04;
    margin: 0 auto 20px;
    max-width: 880px;
}

.hero h1 em {
    background: linear-gradient(120deg, var(--teal) 20%, #14b8a6 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

.hero-text {
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 19px);
    line-height: 1.6;
    margin: 0 auto 30px;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-note { color: var(--faint); font-size: 13px; margin-top: 14px; }

/* ---------- App mockup ---------- */

.app-frame {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    margin: 52px auto 0;
    max-width: 860px;
    overflow: visible;
    position: relative;
    text-align: left;
}

.frame-top {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 7px;
    padding: 12px 16px;
}

.frame-top > span {
    background: #e2e8f0;
    border-radius: 999px;
    height: 10px;
    width: 10px;
}

.frame-top > span:first-child { background: #fca5a5; }
.frame-top > span:nth-child(2) { background: #fcd34d; }
.frame-top > span:nth-child(3) { background: #86efac; }

.frame-url {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--faint);
    font-size: 12px;
    margin-left: 12px;
    padding: 4px 14px;
}

.frame-body {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: grid;
    grid-template-columns: 64px 1fr;
    overflow: hidden;
}

.frame-side {
    background: #0b3b37;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 12px;
}

.fs-logo {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    border-radius: 8px;
    height: 26px;
    margin-bottom: 8px;
    width: 26px;
}

.fs-item { background: rgba(255, 255, 255, 0.18); border-radius: 6px; height: 9px; }
.fs-item.active { background: #2dd4bf; }

.frame-main {
    background: #eef1ee;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
    padding: 16px;
}

.fcol-head {
    border-top: 3px solid var(--c, #94a3b8);
    background: #fff;
    border-radius: 7px 7px 0 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    padding: 6px 8px;
    text-transform: uppercase;
}

.fcard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 9px;
}

.fcard i {
    background: #e2e8f0;
    border-radius: 999px;
    display: block;
    height: 7px;
    margin-bottom: 6px;
}

.fcard b { color: var(--teal-dark); font-size: 11px; }

.fcard.glowcard { border-color: #5eead4; box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25); }

.float-chip {
    align-items: center;
    animation: floaty 5s ease-in-out infinite;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-2);
    display: flex;
    gap: 9px;
    padding: 11px 15px;
    position: absolute;
}

.float-chip strong { display: block; font-size: 12.5px; }
.float-chip small { color: var(--muted); font-size: 11.5px; }

.chip-msg { left: -70px; top: 34%; }
.chip-insp { animation-delay: 2.2s; bottom: -22px; right: -56px; }

.fc-dot {
    animation: pulse 1.8s ease-in-out infinite;
    background: #f59e0b;
    border-radius: 999px;
    flex: 0 0 9px;
    height: 9px;
}

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

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

/* ---------- Stats ---------- */

.stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
    margin: 64px auto 0;
    max-width: 1000px;
    padding: 0 20px;
}

.stats > div {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
}

.stats strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.stats span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ---------- Sections ---------- */

.section {
    margin: 0 auto;
    max-width: 1100px;
    padding: clamp(60px, 9vw, 96px) 20px 0;
}

.section.alt {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    margin-top: clamp(60px, 9vw, 96px);
    max-width: none;
    padding-bottom: clamp(48px, 7vw, 72px);
}

.section.alt > * { margin-left: auto; margin-right: auto; max-width: 1100px; }

.section-head { margin-bottom: 38px; max-width: 720px; }

.eyebrow {
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.08;
    margin-bottom: 14px;
}

.section-sub { color: var(--muted); font-size: 16.5px; line-height: 1.6; }

/* what we do */
.tri-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }

.tri-grid article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tri-grid article:hover {
    border-color: #99ccc6;
    box-shadow: var(--shadow-2);
    transform: translateY(-3px);
}

.ico {
    align-items: center;
    background: var(--teal-soft);
    border-radius: 12px;
    color: var(--teal-dark);
    display: inline-flex;
    height: 46px;
    justify-content: center;
    margin-bottom: 16px;
    width: 46px;
}

.ico svg { height: 23px; width: 23px; }

.tri-grid h3 { font-size: 18px; margin-bottom: 8px; }
.tri-grid p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* fieldops features */
.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }

.feature-grid article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-grid article:hover { border-color: #99ccc6; transform: translateY(-2px); }

.fico { display: block; font-size: 22px; margin-bottom: 10px; }
.feature-grid h3 { font-size: 15.5px; margin-bottom: 6px; }
.feature-grid p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.center-cta { display: flex; justify-content: center; margin-top: 36px; }

/* automation split */
.section.split {
    align-items: center;
    display: grid;
    gap: 44px;
    grid-template-columns: 0.9fr 1.1fr;
}

.section.split .btn-ghost { margin-top: 22px; }

.automation-tree {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    display: grid;
    gap: 14px;
    padding: 24px;
}

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

.node {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
    padding: 14px;
}

.node.start { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); border: none; color: #fff; }
.node.success { border-color: #86efac; }
.node.warning { border-color: #fdba74; }
.node.text { border-color: #93c5fd; }
.node.task { border-color: #fde68a; }

/* ---------- Pilot ---------- */

.pilot {
    align-items: center;
    background:
        radial-gradient(500px 260px at 85% 20%, rgba(45, 212, 191, 0.25), transparent 70%),
        linear-gradient(135deg, var(--teal-dark), var(--teal-deep));
    border-radius: var(--radius-lg);
    color: #fff;
    display: grid;
    gap: 30px;
    grid-template-columns: 1.4fr 1fr;
    margin: clamp(60px, 9vw, 96px) auto;
    max-width: 1100px;
    padding: clamp(32px, 5vw, 56px);
    width: calc(100% - 40px);
}

.pilot .eyebrow { color: #5eead4; }
.pilot h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; margin-bottom: 14px; }
.pilot p { color: #c8ece7; font-size: 15.5px; line-height: 1.6; }

.pilot-actions { display: grid; gap: 14px; justify-items: center; }
.pilot-demo-link { color: #99e5db; font-size: 14px; font-weight: 700; text-decoration: none; }
.pilot-demo-link:hover { color: #fff; }

/* ---------- Footer ---------- */

footer {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1100px;
    padding: 30px 20px 42px;
}

.foot-brand { display: block; font-weight: 800; }
footer small { color: var(--muted); }
footer nav { display: flex; gap: 22px; }
footer nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
footer nav a:hover { color: var(--teal-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .chip-msg { left: -14px; }
    .chip-insp { right: -8px; }
}

@media (max-width: 860px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-header nav { display: none; }

    .stats, .tri-grid, .feature-grid, .branch { grid-template-columns: 1fr; }
    .section.split, .pilot { grid-template-columns: 1fr; }

    .frame-main { grid-template-columns: repeat(2, 1fr); }
    .fcol:nth-child(n+3) { display: none; }
    .float-chip { position: static; margin: 12px 14px; animation: none; }
    .app-frame { padding-bottom: 4px; }
}
