/* 360Flowz Technologies: deep navy, electric blue and teal from the logo; Space Grotesk headings, Inter text. */

@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-display: swap; src: url('/assets/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2'); }

:root {
    --navy-950: #060E22;
    --navy-900: #0B1B3F;
    --navy-800: #11275A;
    --navy-700: #1A3778;
    --blue-600: #2563EB;
    --blue-500: #3B74F5;
    --blue-400: #5B8CFF;
    --teal-500: #14B8A6;
    --teal-400: #2DD4BF;
    --ink: #0B1B3F;
    --text: #334155;
    --muted: #5B6B82;
    --line: #E2E8F0;
    --soft: #F4F7FC;
    --paper: #FFFFFF;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(11, 27, 63, 0.06), 0 12px 32px -12px rgba(11, 27, 63, 0.18);
    --shadow-lg: 0 30px 60px -24px rgba(11, 27, 63, 0.35);
    --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px; border-radius: 999px;
    font-family: var(--body); font-weight: 600; font-size: 16px;
    border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: linear-gradient(135deg, var(--blue-600), #1E50D6); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 28px -10px rgba(37, 99, 235, .8); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- Header ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--blue-600); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.035em; color: var(--navy-900); }
.brand-360 { color: var(--blue-600); }
.brand-tag { font-family: var(--display); font-weight: 500; font-size: 9.5px; letter-spacing: .42em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { color: var(--ink); font-weight: 500; font-size: 15.5px; }
.menu a:not(.btn):hover { color: var(--blue-600); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(37, 99, 235, .35), transparent 60%),
        radial-gradient(700px 500px at 10% 100%, rgba(20, 184, 166, .22), transparent 60%),
        linear-gradient(180deg, var(--navy-950), var(--navy-900));
    color: #DCE6FA;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(148, 180, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 180, 255, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 112px; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 16px; }
.eyebrow-light { color: var(--teal-400); }
.hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.035em; }
.grad { background: linear-gradient(90deg, var(--blue-400), var(--teal-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 22px; font-size: 19px; max-width: 34em; color: #C3D0EA; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 15px; color: #B7C6E4; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; fill: none; stroke: var(--teal-400); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-left: auto; }
.orbit { width: 100%; height: 100%; }
.spin { transform-origin: 260px 260px; animation: spin 40s linear infinite; }
.wave { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 2.2s .3s ease-out forwards; filter: drop-shadow(0 6px 18px rgba(45, 212, 191, .45)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.chip {
    position: absolute; display: grid; grid-template-columns: 10px auto; align-items: center; column-gap: 10px; row-gap: 2px; width: max-content;
    padding: 12px 16px; border-radius: 14px;
    background: rgba(13, 30, 70, .72); border: 1px solid rgba(148, 180, 255, .22);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: #fff; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
    animation: float 6s ease-in-out infinite;
}
.chip small { grid-column: 2; font-family: var(--body); font-weight: 400; font-size: 12.5px; color: #A9B9DA; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.chip-dento { --c: #2DD4BF; top: 6%; left: -2%; }
.chip-gym { --c: #FB923C; top: 30%; right: -4%; animation-delay: -2s; }
.chip-texo { --c: #A78BFA; bottom: 14%; left: 2%; animation-delay: -4s; }
.chip-ai { --c: #5B8CFF; bottom: 2%; right: 14%; animation-delay: -1s; }
.chip-net { --c: #38BDF8; top: 56%; left: 34%; animation-delay: -3s; font-size: 14px; padding: 9px 13px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 18px; color: var(--muted); }
.section-head-light h2 { color: #fff; }
.section-head-light p:not(.eyebrow) { color: #B7C6E4; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product {
    position: relative; display: flex; flex-direction: column;
    padding: 32px 30px 28px; border-radius: var(--radius);
    background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}
.product::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--p); }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--p) 35%, var(--line)); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.product-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--p) 12%, #fff); color: var(--p); }
.product-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.product-tag { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--p); background: color-mix(in srgb, var(--p) 9%, #fff); padding: 6px 11px; border-radius: 999px; text-align: right; }
.product h3 { font-size: 28px; }
.product > p { margin-top: 10px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 15.5px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
    content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
    background: color-mix(in srgb, var(--p) 14%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B3F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.product-link { margin-top: auto; font-weight: 600; color: var(--p); display: inline-flex; gap: 6px; align-items: center; }
.product-link:hover { color: var(--ink); }

/* Flowtexo band */
.band {
    position: relative; overflow: hidden;
    background:
        radial-gradient(800px 420px at 100% 0%, rgba(124, 58, 237, .28), transparent 60%),
        radial-gradient(700px 420px at 0% 100%, rgba(37, 99, 235, .30), transparent 60%),
        var(--navy-900);
    color: #C3D0EA;
}
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.flow::before {
    content: ''; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(45, 212, 191, .7) 0 10px, transparent 10px 18px);
}
.flow-step {
    position: relative; padding: 0 18px 26px; text-align: center;
    border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 180, 255, .16);
}
.flow-num {
    display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px;
    border-radius: 50%; background: var(--navy-800); border: 2px solid var(--teal-400);
    color: #fff; font-family: var(--display); font-weight: 700; font-size: 24px;
    box-shadow: 0 0 0 8px var(--navy-900);
    transform: translateY(0);
}
.flow-step h3 { color: #fff; font-size: 19px; }
.flow-step p { margin-top: 8px; font-size: 14.5px; color: #A9B9DA; }
.flow-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.flow-point { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(148, 180, 255, .16); }
.flow-point svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--teal-400); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.flow-point strong { display: block; color: #fff; font-family: var(--display); font-size: 17.5px; }
.flow-point span { font-size: 15px; color: #A9B9DA; }
.band-cta { text-align: center; margin-top: 44px; }

/* Solutions */
.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.solution { padding: 32px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.solution:hover { background: #EEF3FC; transform: translateY(-4px); }
.solution-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--blue-600), var(--teal-500)); color: #fff; margin-bottom: 22px; box-shadow: 0 12px 24px -12px rgba(37, 99, 235, .7); }
.solution-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.solution h3 { font-size: 23px; }
.solution p { margin-top: 10px; color: var(--muted); }

/* Why */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.why-copy h2 { font-size: clamp(32px, 3.8vw, 44px); }
.why-copy p:not(.eyebrow) { margin-top: 18px; font-size: 18px; color: var(--muted); }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.why-list li { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.why-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #E8EFFD; color: var(--blue-600); }
.why-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.why-list h3 { font-size: 19px; }
.why-list p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }

/* Contact */
.contact {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px;
    padding: 56px; border-radius: 28px;
    background:
        radial-gradient(600px 400px at 0% 0%, rgba(20, 184, 166, .25), transparent 60%),
        radial-gradient(600px 400px at 100% 100%, rgba(37, 99, 235, .35), transparent 60%),
        var(--navy-900);
    box-shadow: var(--shadow-lg);
}
.contact-copy h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); }
.contact-copy p:not(.eyebrow) { margin-top: 16px; color: #B7C6E4; font-size: 17.5px; }
.contact-mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; color: #fff; font-weight: 600; font-size: 18px; }
.contact-mail svg { width: 24px; height: 24px; fill: none; stroke: var(--teal-400); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-mail:hover { color: var(--teal-400); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 28px; border-radius: 20px; background: var(--paper); }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
    border: 1px solid #CBD5E1; background: #fff; color: var(--ink);
    font: inherit; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.form-error { color: #B91C1C; font-size: 14.5px; font-weight: 500; grid-column: 1 / -1; }
.form-note { font-size: 13.5px; color: var(--muted); text-align: center; }

/* Footer */
.footer { background: var(--navy-950); color: #A9B9DA; padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.brand-light { color: var(--blue-400); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-360 { color: var(--blue-400); }
.brand-light .brand-tag { color: #8EA0C4; }
.footer-brand p { margin-top: 16px; max-width: 26em; font-size: 15.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .02em; }
.footer-cols a { display: block; color: #A9B9DA; font-size: 15px; padding: 5px 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(148, 180, 255, .14); font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .products, .solutions { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    .flow::before { display: none; }
    .why { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
    .menu-btn { display: flex; }
    .menu {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 24px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 30px -20px rgba(11, 27, 63, .25);
        display: none;
    }
    .menu.open { display: flex; }
    .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .menu .btn { margin-top: 16px; }
    .hero-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
    .hero-visual { margin: 8px auto 0; max-width: 440px; }
    .contact { grid-template-columns: 1fr; padding: 32px 22px; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding: 72px 0; }
    .container { padding-inline: 16px; }
    .products, .solutions, .why-list, .flow-points { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr 1fr; }
    .contact-form { grid-template-columns: 1fr; padding: 20px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .chip { font-size: 13.5px; padding: 9px 12px; }
    .chip small { font-size: 11.5px; }
    .chip-net { display: none; }
    .brand-name { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .spin, .chip { animation: none; }
    .wave { animation: none; stroke-dashoffset: 0; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .product, .solution { transition: none; }
}
