@charset "UTF-8";

/* Feima midnight theme. Layout and interaction remain in styles.css / app.js. */
:root {
  color-scheme: dark;
  --ink: #edf4fc;
  --muted: #a6b5c9;
  --green: #7ce6f5;
  --lime: #8debf6;
  --line: #263448;
  --paper: #080e19;
  --soft: #101a2b;
  --radius: 18px;
  --cyan: #88e9f6;
  --violet: #b3a0f4;
  --surface: #101a29;
  --surface-raised: #162236;
}

html {
  background: var(--paper);
  scrollbar-color: #3c5269 #0c1422;
}

body {
  background:
    radial-gradient(ellipse 760px 540px at 83% 300px, #173f532e, transparent 75%),
    radial-gradient(ellipse 500px 500px at 2% 760px, #35295b17, transparent 75%),
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #78e7f540;
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

p { color: var(--muted); }
h1, h2, h3 { color: var(--ink); }

.preview-banner {
  background: #0c1625;
  border-bottom: 1px solid #ffffff06;
  color: #c3cfdf;
  font-size: 14px;
  padding-block: 8px;
}

.preview-banner span { color: #8e9fb5; }

.site-header {
  background: #080f1aeb;
  border-bottom-color: #c0d8fa12;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.brand { color: #edf6ff; }
.brand small { color: #8a9bb5; font-size: 11px; letter-spacing: 2.3px; }
.brand-mark {
  color: #a4eff8;
  background: linear-gradient(145deg, #1e3848, #102131);
  border: 1px solid #8debf62b;
  box-shadow: inset 0 1px 0 #d1f8ff0d;
}

.header-inner nav { color: #a8b8cc; }
.header-inner nav a { position: relative; transition: color .2s ease; }
.header-inner nav a:hover { color: #e8fbff; }
.header-inner nav a::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.header-inner nav a:hover::after { transform: scaleX(1); }

.button {
  min-height: 48px;
  border-radius: 9px;
  font-size: 15px;
  letter-spacing: .01em;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.primary,
.light {
  color: #08202a;
  background: linear-gradient(115deg, #a0edf7, #7edeea);
  border-color: #b8f6ff70;
  box-shadow: 0 4px 22px #56d4ef12, inset 0 1px 0 #ffffff50;
}

.primary:hover,
.light:hover {
  color: #061b23;
  background: linear-gradient(115deg, #bcf5fc, #91e8f3);
  box-shadow: 0 6px 28px #5ddbf528;
}

.secondary {
  color: #dbe8f7;
  background: #14203399;
  border-color: #8099ba36;
}
.secondary:hover { background: #1b2c43; border-color: #93b5cd70; }
.button-small {
  min-height: 41px;
  color: #a4edf6;
  border-color: #7fdce73b;
  background: #6acee30b;
  font-size: 14px;
}
.button-small:hover { background: #6acee31c; border-color: #7fdce770; }
.menu-toggle { color: #d5e7f6; background: #142033; }

.hero {
  position: relative;
  isolation: isolate;
  padding-block: 82px 74px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px -20px 0;
  pointer-events: none;
  background-image:
    linear-gradient(#8ab7df08 1px, transparent 1px),
    linear-gradient(90deg, #8ab7df08 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 78% 50%, #000a, transparent 72%);
  mask-image: radial-gradient(ellipse at 78% 50%, #000a, transparent 72%);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  color: #88cfdc;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
}
.short-rule {
  width: 28px;
  background: linear-gradient(90deg, #83e7f4, #83e7f400);
  box-shadow: 0 0 15px #83e7f440;
}
.hero h1 {
  color: #f3f7ff;
  font-size: clamp(36px, 3.7vw, 57px);
  line-height: 1.38;
  letter-spacing: -1.5px;
}
.accent-text { color: #8be9f5; text-shadow: 0 0 35px #67dcee24; }
.hero-description { color: #a9b9cf; font-size: 16px; line-height: 1.95; }
.hero-actions { margin-top: 34px; }
.hero-note { color: #8a9db7; font-size: 14px; gap: 12px; }
.hero-note i { background: #557a91; }

.section { padding-block: 86px; }
.section-heading h2 { letter-spacing: -.6px; }
.section-heading > p { color: #8fa3bd; font-size: 15px; }
.section-heading .eyebrow { color: #80bdcd; }
.text-link { color: #9addf0; font-size: 14px; }
.text-link:hover { color: #c6f7ff; }

.product {
  position: relative;
  border-color: #7188b42b;
  box-shadow: inset 0 1px 0 #e2f3ff06;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.product:hover { border-color: #8db4d14f; box-shadow: 0 16px 40px #00000014; }
.product-rhino {
  background: radial-gradient(ellipse at 100% 0, #21495136, transparent 62%), #101d2c;
}
.product-cad {
  background: radial-gradient(ellipse at 100% 0, #4438622b, transparent 62%), #131b2d;
}
.product-monogram {
  background: linear-gradient(145deg, #264852, #17313e);
  border: 1px solid #8cd8e62b;
  color: #a9f0f7;
}
.product-cad .product-monogram {
  background: linear-gradient(145deg, #393753, #252a43);
  border-color: #b4a7ee30;
  color: #d0c4ff;
}
.pill {
  color: #a3b8cd;
  border-color: #97abc134;
  background: #0a15253d;
  font-size: 14px;
}
.product h3 { color: #edf5ff; }
.product p { color: #a4b6cb; font-size: 16px; }
.command-line {
  background: #07121ecc;
  border-color: #51708040;
  color: #7e9fb7;
  font-size: 14px;
  padding-block: 16px;
}
.command-line code { color: #94e3ec; font-size: 16px; }
.cursor-block { background: #8ae6f0; box-shadow: 0 0 13px #8ae6f02b; }
.cad-sketch svg { stroke: #94a7d3; }
.product-footer { border-color: #8aa5c725; color: #8ba2bb; font-size: 14px; }

.status-label { color: #e7c695; background: #53412a5e; font-size: 14px; padding: 4px 9px; }
.unavailable {
  opacity: 1;
  background: #24364a;
  color: #b0c1d3;
  border-color: #7792af28;
  box-shadow: none;
}

.filter-tabs button { color: #9cb0c8; font-size: 14px; }
.filter-tabs button:hover { background: #16243a; color: #d7edf8; }
.filter-tabs button.active {
  color: #a8eff8;
  background: #173444;
  box-shadow: inset 0 0 0 1px #84dce52b;
}
.search { background: #101b2b; border-color: #3c526950; padding-block: 10px; }
.search:focus-within { border-color: #79cad77a; }
.search svg { stroke: #8aa5bc; }
.search input { color: #e5f3ff; font-size: 14px; }
.search input::placeholder { color: #8499b2; opacity: 1; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.tutorial-card {
  background: #111c2d;
  border-color: #7a98b62b;
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.tutorial-card:hover { border-color: #80b3ce55; transform: translateY(-3px); }
.tutorial-cover {
  background: radial-gradient(ellipse at 50% 75%, #24405c88, transparent 75%), #0e1a2b;
  border-bottom: 1px solid #7a98b61a;
}
.tutorial-cover::before {
  background-image:
    linear-gradient(#82b9d90a 1px, transparent 1px),
    linear-gradient(90deg, #82b9d90a 1px, transparent 1px);
  background-size: 24px 24px;
}
.tutorial-cover svg { filter: hue-rotate(83deg) saturate(.65); opacity: .9; }
.tutorial-cover .cover-label { color: #8fb9d2; font-size: 11px; letter-spacing: .16em; }
.cover-state { color: #c1d5e8; background: #071320db; border: 1px solid #9ebbd01c; font-size: 14px; }
.cover-play {
  width: 44px;
  height: 44px;
  color: #cffaff;
  background: #6fdbea16;
  border-color: #b2edf84f;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 24px #6cd8e914;
}
.tutorial-category { color: #85c4d6; font-size: 14px; }
.tutorial-body h3 { font-size: 19px; line-height: 1.5; }
.tutorial-body p { color: #9cb0c7; font-size: 15px; }
.tutorial-body button { color: #9cdeee; font-size: 14px; min-height: 36px; }
.tutorial-body button:hover { color: #d3faff; }
.empty-state { background: #111e2f; border: 1px solid #293e52; color: #adc1d7; }

.site-footer { background: #080f1b; border-color: #7d9ab924; }
.footer-top p { color: #8fa5be; font-size: 14px; }
.footer-top nav { color: #a8bcd2; font-size: 14px; }
.footer-top nav a:hover,
.footer-top .plain-button:hover { color: #b9f2fb; }
.footer-top .brand small { font-size: 10px; }
.footer-bottom { border-color: #68829e29; color: #8498b1; font-size: 13px; }
.skip:focus { color: #08202a; background: #a8edf6; border-radius: 8px; }

/* Generated tutorial and guide content uses the same readable dark palette. */
dialog {
  background: #121e30;
  color: #ecf3fd;
  border-color: #6584a24f;
  box-shadow: 0 28px 100px #0009, inset 0 1px 0 #b9e1ff0a;
  scrollbar-color: #425c75 #121e30;
}
dialog::backdrop { background: #020611cf; backdrop-filter: blur(8px); }
.dialog-close { color: #a8bfd6; border-radius: 8px; }
.dialog-close:hover { color: #e6faff; background: #20364b; }
.dialog-content-label { color: #91ccdf; font-size: 14px; }
dialog h2 { padding-right: 12px; color: #eff6ff; line-height: 1.5; }
dialog h3 { color: #d6e8f6; font-size: 19px; }
dialog p,
dialog li { color: #b5c4d8; font-size: 16px; line-height: 1.95; }
dialog li::marker { color: #80c9dc; }
.dialog-note { background: #1d3044; border-left: 2px solid #80c9dc82; color: #b8cadf; }
dialog code { color: #a0e3ec; background: #20384b; font-size: .94em; overflow-wrap: anywhere; }
.dialog-video { background: #050b14; }

@media (min-width: 1500px) {
  .hero { padding-block: 96px 86px; }
}

@media (max-width: 1100px) {
  .hero { padding-block: 62px 58px; }
  .hero h1 { font-size: 40px; }
  .product p { font-size: 15px; }
  .product-footer { flex-wrap: wrap; row-gap: 8px; }
}

@media (max-width: 800px) {
  .header-inner nav {
    background: #0d1828;
    border-bottom-color: #354c65;
    box-shadow: 0 20px 32px #02071070;
  }
  .header-inner nav a { min-height: 44px; }
  .header-inner nav a::after { display: none; }
  .menu-toggle { background: #16263a; border-color: #6488a34a; }
  .hero { padding-block: 45px 35px; gap: 24px; }
  .hero h1 { font-size: 43px; }
  .hero-description { font-size: 16px; }
  .hero-note { font-size: 14px; }
  .section { padding-block: 58px; }
  .product-footer { font-size: 14px; }
  .command-line code { font-size: 14px; letter-spacing: .02em; }
  .filter-tabs button { min-height: 40px; }
  .footer-bottom { font-size: 13px; }
}

@media (max-width: 500px) {
  .preview-banner { font-size: 12px; padding-inline: 12px; }
  .preview-banner span { margin-left: 8px; }
  .brand small { font-size: 10px; }
  .hero h1 { font-size: clamp(29px, 8.7vw, 39px); letter-spacing: -1px; }
  .hero .eyebrow { font-size: 14px; }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { min-height: 48px; padding-inline: 17px; font-size: 14px; }
  .hero-note { font-size: 13px; gap: 8px; flex-wrap: wrap; }
  .product p { font-size: 16px; }
  .product-footer { font-size: 14px; }
  .filter-tabs { gap: 1px; }
  .filter-tabs button { padding-inline: 11px; }
  .tutorial-body p { font-size: 15px; }
  .footer-top nav { gap: 20px; }
  .footer-bottom { font-size: 12px; }
  dialog { padding: 36px 23px 28px; }
  dialog p, dialog li { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-card:hover,
  .button:hover { transform: none; }
}

.product-download-link { white-space: nowrap; }
.footer-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.footer-copy p { line-height: 1.55; }
.footer-site-info { color: #a6dce8 !important; font-size: 13px !important; overflow-wrap: anywhere; }
