/* Filenk — corporate site. Plain CSS, no build step. */
@import url("/assets/fonts/fonts.local.css");

:root {
  --navy-950: #071330;
  --navy-900: #0b1b3f;
  --navy-800: #13275a;
  --brand: #233f89;
  --brand-600: #2c4fa8;
  --sky: #3b82f6;
  --cyan: #38bdf8;
  --ink: #0f1a33;
  --muted: #4a5878;
  --line: #dde4f2;
  --bg: #ffffff;
  --bg-alt: #f3f6fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 27, 63, 0.08);
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shell: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 14px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.eyebrow {
  display: inline-block; font: 600 0.78rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 16px;
}
.muted { color: var(--muted); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); }
.brand:hover { text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 1.55rem/1 var(--display); letter-spacing: -0.02em; }
.brand-sub { font: 500 0.56rem/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--brand-600); text-decoration: none; }
.nav .lang { color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: 600 0.98rem/1 var(--body);
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sky); color: #fff; box-shadow: 0 8px 22px rgba(59, 130, 246, 0.35); }
.btn-primary:hover { background: #2f74ea; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--navy-800); }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: #b9c7e6; }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(56, 189, 248, 0.20), transparent 60%),
    radial-gradient(700px 480px at 0% 100%, rgba(59, 130, 246, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--brand) 100%);
}
.hero-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; padding: 88px 20px 96px; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.12rem; color: rgba(255, 255, 255, 0.82); max-width: 560px; margin-bottom: 30px; }
.hero-products { position: relative; min-height: 430px; }

/* Device frames */
.window {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(3, 10, 30, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.window-bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef1f6; border-bottom: 1px solid #e1e6ef; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9d1de; }
.window img { width: 100%; height: auto; }
.phone {
  width: 190px; border-radius: 30px; padding: 7px; background: #0a0f1a;
  box-shadow: 0 30px 60px rgba(3, 10, 30, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.phone img { width: 100%; height: auto; border-radius: 24px; }
.hero-products .window { position: absolute; top: 40px; left: 0; right: 70px; }
.hero-products .phone { position: absolute; right: 0; bottom: -10px; }
.hero-caption { position: absolute; left: 0; bottom: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

/* Sections */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.07rem; }

/* Products */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 44px 0;
}
.product + .product { border-top: 1px solid var(--line); }
.product.flip .product-media { order: 2; }
.product-media { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.product-media .phone { width: 210px; }
.product-media .phone + .phone { transform: translateY(-28px); }
.product-media .window { width: 100%; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.product-head img { width: 56px; height: 56px; border-radius: 14px; }
.product-head h3 { font-size: 1.9rem; margin: 0; }
.product-meta { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product p { color: var(--muted); }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink); font-size: 0.97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(59, 130, 246, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c4fa8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.service { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.service .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(59, 130, 246, 0.1); color: var(--brand);
}
.service .icon svg { width: 24px; height: 24px; }
.service h3 { margin-bottom: 6px; }
.service p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.note {
  margin-top: 36px; padding: 22px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  color: var(--muted); font-size: 0.98rem;
}
.note strong { color: var(--ink); }

/* AI band */
.band {
  color: #fff; border-radius: 24px; padding: 56px 52px; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(56, 189, 248, 0.26), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--brand));
}
.band h2 { color: #fff; max-width: 680px; }
.band .eyebrow { color: var(--cyan); }
.band-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.band p { color: rgba(255, 255, 255, 0.84); }
.band ol { margin: 0; padding: 0; list-style: none; counter-reset: a; display: grid; gap: 14px; }
.band ol li { counter-increment: a; position: relative; padding-left: 40px; color: rgba(255, 255, 255, 0.9); }
.band ol li::before {
  content: counter(a); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 700 0.8rem/1 var(--display); color: var(--navy-900); background: var(--cyan);
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 96px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 36px; padding: 16px 0; position: relative; }
.timeline li::after {
  content: ""; position: absolute; left: 91px; top: 24px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 5px var(--line);
}
.t-year { font: 700 1.05rem/1.6 var(--display); color: var(--brand); text-align: right; }
.t-body strong { display: block; font: 600 1.05rem/1.4 var(--display); }
.t-body span { color: var(--muted); font-size: 0.97rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.contact-card dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-card dd { margin: 4px 0 18px; font: 600 1.05rem/1.4 var(--display); }
.contact-card dd:last-child { margin-bottom: 0; }

/* Footer */
.foot { background: var(--navy-950); color: rgba(255, 255, 255, 0.7); padding: 56px 0 36px; font-size: 0.92rem; }
.foot-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 0.8fr; gap: 32px; align-items: start; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot a { color: rgba(255, 255, 255, 0.85); }
.foot-brand p { margin: 0 0 8px; max-width: 320px; }
.foot-title { font: 600 0.78rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 6px 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-note { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Breadcrumbs */
.crumbs { background: var(--navy-950); }
.crumbs ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, 0.3); }
.crumbs a { color: rgba(255, 255, 255, 0.75); }
.crumbs [aria-current] { color: #fff; }

/* Inner page hero */
.page-hero { color: #fff; padding: 56px 0 64px; background: radial-gradient(800px 360px at 90% 0%, rgba(56, 189, 248, 0.18), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--brand)); }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lede { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; max-width: 760px; margin-bottom: 26px; }
.product-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.product-meta.light { color: rgba(255, 255, 255, 0.7); }
.h-sm { font-size: 1.45rem; margin-bottom: 16px; }
.narrow { max-width: 860px; }
.split { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 48px; align-items: start; }
.prose p { color: var(--muted); }
.prose .h-sm + p { margin-top: 0; }
.prose .ticks + .h-sm, .prose p + .h-sm { margin-top: 28px; }
.panel { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { margin-bottom: 6px; }
.panel p { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* Link cards */
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.link-grid.big { grid-template-columns: repeat(3, 1fr); }
.link-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.link-card:hover { text-decoration: none; border-color: #b9c7e6; transform: translateY(-2px); }
.link-card .icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(59, 130, 246, 0.1); color: var(--brand); }
.link-card .icon svg { width: 22px; height: 22px; }
.link-card strong { display: block; font-family: var(--display); font-weight: 600; margin-bottom: 4px; }
.link-card small { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.link-card.wide { max-width: 520px; align-items: center; }
.link-card.wide img { border-radius: 10px; }

.service-list { display: grid; gap: 12px; }
.service-row { display: grid; grid-template-columns: 48px 1fr 24px; gap: 18px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; transition: border-color .15s ease; }
.service-row:hover { text-decoration: none; border-color: #b9c7e6; }
.service-row .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(59, 130, 246, 0.1); color: var(--brand); }
.service-row .icon svg { width: 24px; height: 24px; }
.service-row strong { display: block; font: 600 1.15rem/1.3 var(--display); margin-bottom: 4px; }
.service-row small { color: var(--muted); font-size: 0.97rem; }
.service-row .more, .more { color: var(--brand-600); font-weight: 600; }

/* Product cards */
.product-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.product-card:hover { text-decoration: none; transform: translateY(-3px); border-color: #b9c7e6; }
.pc-media { height: 260px; display: flex; align-items: flex-end; justify-content: center; padding: 28px 28px 0; background: var(--bg-alt); overflow: hidden; }
.pc-media.dark { background: linear-gradient(160deg, #0f1724, #1b2433); }
.pc-media .phone { width: 190px; margin-bottom: -150px; }
.pc-media .window { width: 100%; margin-bottom: -20px; }
.pc-body { padding: 24px 26px 26px; }
.pc-body .product-head h3 { font-size: 1.4rem; margin: 0; }
.pc-body p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 17px 28px 17px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 1.35rem; color: var(--brand-600); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA band (light variant on inner pages) */
.band-cta { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.band-cta p { margin: 0; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }

/* Responsive */
@media (max-width: 1020px) {
  .product-hero, .split, .band-cta, .product-cards { grid-template-columns: 1fr; }
  .link-grid, .link-grid.big { grid-template-columns: repeat(2, 1fr); }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-products { min-height: 0; height: 360px; max-width: 560px; }
  .product, .band-grid, .contact { grid-template-columns: 1fr; }
  .product.flip .product-media { order: 0; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 18px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .hero-products { height: 250px; }
  .hero-products .window { right: 70px; }
  .hero-products .phone { width: 118px; border-radius: 20px; padding: 5px; bottom: 0; }
  .hero-products .phone img { border-radius: 16px; }
  .hero-caption { display: none; }
  .product { gap: 28px; padding: 32px 0; }
  .product-media .phone { width: 150px; }
  .product-media .phone + .phone { transform: translateY(-18px); }
  .band { padding: 36px 22px; }
  .grid-2, .link-grid, .link-grid.big, .foot-inner { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 1fr; padding: 18px; }
  .service-row .more { display: none; }
  .page-hero { padding: 40px 0 48px; }
  .timeline::before { left: 76px; }
  .timeline li { grid-template-columns: 62px 1fr; gap: 28px; }
  .timeline li::after { left: 71px; }
  .t-year { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
