/* Yilmio company pages (draft). Author: Erdal YILMAZ
   Layout: left-aligned reading column, one oversized tagline on the home page, a Logitech-FIP-style
   bezel around product screenshots. Colours are tokens; dark values follow the visitor's system setting. */
:root {
  --bg: #eef1f4;
  --panel: #ffffff;
  --ink: #101722;
  --muted: #546174;
  --line: #cdd5de;
  --accent: #0a7285;
  --on-accent: #ffffff;
  --logo-ring: #35bfd3;
  --logo-ink: #0b2239;
  --bezel-1: #22272f;
  --bezel-2: #1b1f26;
  --bezel-3: #15181d;
  --font-display: "Exo 2", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1218;
    --panel: #131b24;
    --ink: #e3e9f0;
    --muted: #93a1b1;
    --line: #26313e;
    --accent: #3cc4d6;
    --on-accent: #05222a;
    --logo-ring: #3cc4d6;
    --logo-ink: #f3f8fa;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font-body); -webkit-text-size-adjust: 100%; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 4px; z-index: 10; }
.skip:focus { top: 12px; }

/* header */
.top { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-block: 20px; }
/* logo 6 "Halo with ı": every letter is an outline, nothing selectable; colours follow the theme */
.brand { display: flex; align-items: center; text-decoration: none; }
.logo { display: block; height: 38px; width: auto; }
.logo-ring { stroke: var(--logo-ring); }
.logo-bar { stroke: var(--logo-ink); }
.logo-ink { fill: var(--logo-ink); }
.top nav { display: flex; gap: 6px 24px; flex-wrap: wrap; flex: 1; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding-block: 4px; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.lang { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.lang select { font: 500 15px var(--font-body); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; cursor: pointer; }

/* home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr); gap: 48px; align-items: center; padding-block: 56px 72px; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 6.6vw, 84px); line-height: .98; letter-spacing: -.025em; }
.lede { margin-top: 28px; max-width: 34em; font-size: 20px; line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font: 600 17px var(--font-body); padding: 12px 22px; border-radius: 4px; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.link { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* FIP bezel: a generic stand-in for a Logitech Flight Instrument Panel, drawn in CSS */
.fip { position: relative; background: linear-gradient(160deg, var(--bezel-1), var(--bezel-2) 40%, var(--bezel-3)); border-radius: 12px; padding: 14px 14px 44px 46px; box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); width: min(100%, 340px); }
.fip .glass { display: block; background: #000; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 2px #050608, 0 0 28px rgba(255,165,0,.12); }
.fip img { display: block; width: 100%; height: auto; }
.fip .keys { position: absolute; left: 10px; top: 16px; bottom: 50px; display: flex; flex-direction: column; justify-content: space-between; }
.fip .keys i { width: 24px; height: 14px; border-radius: 3px; background: #2c323b; box-shadow: inset 0 -2px 0 #181b21; }
.fip .knob { position: absolute; bottom: 9px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a515c, #1d2127 70%); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.fip .knob.l { left: 12px; } .fip .knob.r { right: 12px; }
figure { margin: 0; min-width: 0; }
figcaption { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 24em; }
@media (prefers-reduced-motion: no-preference) {
  .fip .glass { animation: power 1.4s ease-out both; }
  @keyframes power { from { filter: brightness(.25) saturate(.4); } to { filter: none; } }
}

/* bands */
.band { border-top: 1px solid var(--line); padding-block: 56px; }
.band h2 { font-weight: 700; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; }
.band p { max-width: 38em; }
.band h2 + p { margin-top: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: start; }
.pill { display: inline-block; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 3px 14px; font-size: 14px; font-weight: 600; }
.side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 32px; }
.pillars > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.pillars h3 { font-size: 21px; font-weight: 700; line-height: 1.2; }
.pillars p { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* inner pages */
.page-head { padding-block: 48px 40px; }
.page-head h1 { font-weight: 800; font-size: clamp(38px, 5.6vw, 64px); line-height: 1; letter-spacing: -.02em; }
.page-head .lede { margin-top: 20px; }
.product { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.product .pair { display: grid; gap: 28px; justify-items: start; }
.product h2 { font-weight: 800; font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.01em; }
.tags { margin-top: 6px; color: var(--muted); font-size: 15px; }
.product p { margin-top: 18px; }
.feats { margin-top: 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.feats li { position: relative; padding-left: 22px; }
.feats li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.product .side { margin-top: 28px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.prose h2 { font-weight: 700; font-size: clamp(24px, 2.8vw, 30px); }
.prose h2 + p { margin-top: 12px; }
.prose section + section { margin-top: 40px; }
.prose p { max-width: 38em; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.mail a { font: 700 clamp(26px, 4.4vw, 40px)/1.1 var(--font-display); color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.mail button { font: 500 15px var(--font-body); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 14px; cursor: pointer; }
.mail button:hover { border-color: var(--accent); }

/* Gaugecast product page */
.product h2 { display: flex; align-items: center; gap: 14px; }
.product h2 .mark { width: 48px; height: 48px; border-radius: 11px; }
.gc-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.gc-hero h1 { font-size: clamp(40px, 5.6vw, 72px); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; color: var(--muted); font-size: 15px; }
.eyebrow img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.eyebrow b { display: block; color: var(--ink); font: 700 22px/1.1 var(--font-display); }
.tablet { background: linear-gradient(160deg, var(--bezel-1), var(--bezel-3)); border-radius: 22px; padding: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06); }
.tablet.small { border-radius: 14px; padding: 10px; }
.tablet img { display: block; width: 100%; height: auto; border-radius: 4px; background: #000; }
.facts { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts li { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.facts b { display: block; color: var(--ink); font: 700 20px/1.2 var(--font-display); margin-bottom: 4px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card h3 { font-size: 23px; line-height: 1.2; }
.card .tags { margin-top: -6px; }
.card p { font-size: 16px; }
.screen-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; margin-top: 44px; }
.screen-row h3 { font-size: 22px; line-height: 1.2; }
.screen-row h3 + p { margin-top: 10px; font-size: 16px; }
.screen-row .fip { width: min(100%, 380px); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stack { display: grid; gap: 20px; }
.deck { display: block; width: 100%; height: auto; border-radius: 8px; background: #000; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; margin-top: 32px; }
.gallery .fip { width: 100%; }
.gallery.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.gallery figcaption, .duo figcaption, .stack figcaption { margin-top: 10px; font-size: 14px; }
.status p { font-size: 16px; }
.band p.note, .card p.note { color: var(--muted); font-size: 14px; border-left: 3px solid var(--line); padding-left: 12px; }
.band h2 + p + p.note { margin-top: 12px; }
.totop { position: fixed; right: 18px; bottom: 18px; z-index: 5; font: 600 14px var(--font-body); color: var(--on-accent); background: var(--accent); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.totop::before { content: "\2191\00a0"; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: 14px; }
footer p { max-width: 46em; }
footer .copy { margin-top: 10px; font-weight: 500; }

html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { letter-spacing: 0; font-weight: 700; }
html[lang="zh"] .hero h1 { line-height: 1.12; }

@media (max-width: 640px) {
  .top nav { order: 3; flex-basis: 100%; }
  .lang { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero, .split, .product, .screen-row, .cards { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .facts, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-block: 32px 48px; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .band { padding-block: 44px; }
}
@media (max-width: 600px) {
  .gallery, .gallery.g2, .duo, .facts { grid-template-columns: minmax(0, 1fr); }
  .gallery .fip { width: min(100%, 380px); }
}
