/* =====================================================================================================================
   ECUWORKS 2026 — DESIGN TOKENS ("Cinematic Crimson", Full-Viewport 100svh Snap on Mobile, Tablet & Desktop)
   Brand Palette: Ink #040A0F · Panel #131B23 · Crimson #EA2B38 · Ember #FF6B76 · Crisp White #FFFFFF
   ===================================================================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Oswald:wght@500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  /* Ecuworks Core Brand Identity */
  --ink: #040a0f;
  --page: #040a0f;
  --panel: #101720;
  --box: #131b23;
  --box-hi: #1c252d;

  /* Primary Brand Signal: Ecuworks Crimson Red (#EA2B38) */
  --red: #ea2b38;
  --red-rgb: 234, 43, 56;
  --ember: #ff6b76;
  --flare: #ff4250;
  --on-red: #ffffff;
  --steel: #c9d4e0;

  /* Text Hierarchy */
  --text: #f5f7fa;
  --body: #cbd5e1;
  --muted: #8b9bb0;
  --kick: #ff6b76;
  --ok: #35c07a;

  /* Persistent Dock & Surface Gradients */
  --dock-strip: linear-gradient(160deg, #8c141d 0%, #14070a 100%);
  --dock-fade: linear-gradient(0deg, rgba(8, 11, 16, 0.92) 38%, rgba(8, 11, 16, 0) 100%);

  /* Typography (100% Uniform Native Turkish Glyph Geometry: Ğ Ü Ş İ Ö Ç) */
  --f-display: "Oswald", "Rajdhani", Impact, sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ui: "Rajdhani", "Inter", system-ui, sans-serif;

  /* Compact Small-Phone Baseline (320px–374px) */
  --h1: 38px;
  --h1-lh: 36px;
  --h2: 30px;
  --h2-lh: 30px;
  --lede: 14px;
  --lede-lh: 20px;
  --small: 12.5px;

  /* Viewport Frame Geometry */
  --screen: 100vh;
  --top: 56px;
  --air-top: 10px;
  --dock: 52px;
  --air-bottom: 10px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  --max: 1680px;
  --anchor: calc(var(--top) + var(--air-top));
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  --line: calc(var(--dock) + var(--air-bottom) + var(--safe-b));
  --row-gap: 10px;
  --gap-h: 6px;
  --col-gap: 24px;
  --ctl: 38px;
  --ctl-gap: 10px;

  /* Surface Shadows & Crimson Glow */
  --t-colour: 0.16s;
  --t-press: 0.1s;
  --glow: 0 0 44px -12px rgba(var(--red-rgb), 0.52);
  --card-face: linear-gradient(180deg, rgba(21, 29, 39, 0.88) 0%, rgba(10, 15, 22, 0.93) 100%);
  --card-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(0, 0, 0, 0.55),
    0 24px 48px -20px rgba(0, 0, 0, 0.88);
  --radius: 18px;

  /* Subtle Ecuworks Geometric Monogram Tile (Clipped 45° E-emblem) */
  --ew-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.026' stroke-width='2'%3E%3Cpolygon points='30,30 92,30 110,48 110,110 30,110'/%3E%3Cpath d='M52 52h34M52 70h26M52 88h34M52 52v36' stroke-width='4'/%3E%3Cpolygon points='160,155 222,155 240,173 240,235 160,235'/%3E%3Cpath d='M182 177h34M182 195h26M182 213h34M182 177v36' stroke-width='4'/%3E%3C/g%3E%3C/svg%3E");
}

@supports (height: 100svh) {
  :root {
    --screen: 100svh;
  }
}

/* 375px+ Standard Phones (375x667, 390x664 Safari bars) */
@media (min-width: 375px) {
  :root {
    --top: 60px;
    --air-top: 12px;
    --air-bottom: 12px;
    --gutter: 20px;
    --h1: 42px;
    --h1-lh: 40px;
    --h2: 33px;
    --h2-lh: 33px;
    --lede: 14.5px;
    --lede-lh: 20.5px;
    --small: 13px;
    --row-gap: 12px;
    --gap-h: 7px;
    --ctl: 40px;
    --ctl-gap: 10px;
  }
}

/* Tall Modern Phones (390x844 iPhone 16, 412x915 Android) */
@media (min-width: 375px) and (min-height: 780px) {
  :root {
    --top: 62px;
    --air-top: 20px;
    --air-bottom: 16px;
    --row-gap: 14px;
    --gap-h: 9px;
    --h1: 46px;
    --h1-lh: 44px;
    --h2: 36px;
    --h2-lh: 36px;
    --lede: 15px;
    --lede-lh: 22px;
    --ctl: 44px;
    --ctl-gap: 12px;
  }
}

/* Ultra-Short Portrait Phones (320x568 SE, 360x640 / Safari URL+Toolbar visible) */
@media (max-width: 699px) and (max-height: 645px) {
  :root {
    --top: 50px;
    --air-top: 8px;
    --dock: 48px;
    --air-bottom: 8px;
    --row-gap: 8px;
    --gap-h: 4px;
    --ctl: 36px;
    --ctl-gap: 8px;
    --h1: 33px;
    --h1-lh: 32px;
    --h2: 26px;
    --h2-lh: 26px;
    --lede: 13px;
    --lede-lh: 18px;
  }
}

/* Tablets & Desktops: 7-Icon Bottom Dock Active */
@media (min-width: 768px) {
  :root {
    --dock: 108px;
    --air-bottom: 18px;
    --safe-b: 0px;
  }
}

@media (min-width: 700px) {
  :root {
    --gutter: 42px;
    --top: 70px;
    --air-top: 26px;
    --row-gap: 18px;
    --gap-h: 12px;
    --col-gap: 32px;
    --h1: 64px;
    --h1-lh: 60px;
    --h2: 46px;
    --h2-lh: 44px;
    --lede: 16px;
    --lede-lh: 24px;
    --small: 14px;
    --ctl: 44px;
    --ctl-gap: 12px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 112px;
    --top: 80px;
    --air-top: 40px;
    --row-gap: 22px;
    --gap-h: 16px;
    --col-gap: 48px;
    --h1: 98px;
    --h1-lh: 90px;
    --h2: 70px;
    --h2-lh: 66px;
    --lede: 18px;
    --lede-lh: 28px;
    --ctl: 50px;
    --ctl-gap: 16px;
  }
}

@media (min-width: 1200px) and (max-height: 940px) {
  :root {
    --h1: 86px;
    --h1-lh: 80px;
    --h2: 60px;
    --h2-lh: 58px;
    --lede: 17px;
    --lede-lh: 26px;
  }
}

@media (min-width: 1800px) and (min-height: 1000px) {
  :root {
    --top: 88px;
    --air-top: 56px;
    --air-bottom: 28px;
    --row-gap: 28px;
    --gap-h: 20px;
    --col-gap: 64px;
    --h1: 124px;
    --h1-lh: 114px;
    --h2: 88px;
    --h2-lh: 84px;
    --lede: 20px;
    --lede-lh: 31px;
    --ctl: 54px;
    --ctl-gap: 20px;
  }
}

/* Compact Tablets & Laptops (1024x768, 1280x800, 1366x768, 1536x864 @ Windows scaling) */
@media (min-width: 768px) and (max-height: 830px) {
  :root {
    --dock: 90px;
    --air-bottom: 12px;
  }
}

@media (min-width: 960px) and (max-height: 830px) {
  :root {
    --top: 64px;
    --air-top: 18px;
    --row-gap: 12px;
    --gap-h: 8px;
    --col-gap: 32px;
    --h1: 62px;
    --h1-lh: 58px;
    --h2: 44px;
    --h2-lh: 42px;
    --lede: 14.5px;
    --lede-lh: 21.5px;
    --ctl: 40px;
    --ctl-gap: 10px;
  }
}
