/* ArcticRex Shared Styles */

:root {
  color-scheme: dark;

  /* Spacing & Radius */
  --radius: 16px;
  --radius-lg: 24px;

  /* Typography */
  --font-heading: 'Roboto Slab', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Colors - Sage + Hero base */
  --bg: #050815;
  --surface: #0a1226;
  --surface-soft: rgba(10, 18, 38, 0.78);
  --ink: #edf6ff;
  --ink-soft: rgba(237, 246, 255, 0.86);
  --muted: rgba(183, 200, 224, 0.82);
  --border: rgba(90, 130, 190, 0.22);

  /* Hero action */
  --accent: #2ee4ff;
  --accent-ink: #03131f;
  --accent-soft: rgba(46, 228, 255, 0.32);

  /* Jester accent (controlled) */
  --accent-alt: #b44cff;
  --accent-cool: #2ee4ff;

  /* Ruler (implicit) */
  --ruler: #040712;

  /* Gradients */
  --page-gradient: linear-gradient(180deg, #040712 0%, #050a18 30%, #07112a 64%, #081a34 100%);
  --hero-gradient: linear-gradient(120deg, #050a18 0%, #08153a 42%, #0a1a44 72%, #07112a 100%);
  --cta-gradient: linear-gradient(135deg, rgba(46, 228, 255, 0.16) 0%, rgba(10, 18, 38, 0.92) 55%, rgba(180, 76, 255, 0.10) 100%);

  /* Shadow */
  --shadow: 0 28px 60px rgba(2, 6, 16, 0.6);

  /* Tags */
  --tag-bg: rgba(46, 228, 255, 0.12);
  --tag-border: rgba(46, 228, 255, 0.22);
}

/* Reset & Base */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover { opacity: 0.86; }

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(4, 7, 18, 0.94), rgba(7, 17, 42, 0.92));
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 24px 58px rgba(2, 6, 16, 0.6);
}

.nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

@media (max-width: 900px) {
  .nav .row {
    padding: 14px 8px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--ink-soft);
  transition: color 0.35s ease;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.92), rgba(180, 76, 255, 0.7));
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(46, 228, 255, 0.22);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.menu {
  display: none;
  gap: 18px;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@media (min-width: 900px) {
  .menu { display: flex; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(90, 130, 190, 0.28);
  font-weight: 750;
  background: rgba(8, 14, 28, 0.35);
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  backdrop-filter: blur(2px);
}

.btn:hover {
  box-shadow: 0 18px 38px rgba(2, 6, 16, 0.58);
  background: rgba(8, 14, 28, 0.5);
  border-color: rgba(46, 228, 255, 0.35);
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.96), rgba(46, 228, 255, 0.78));
  color: var(--accent-ink);
  border-color: rgba(46, 228, 255, 0.6);
  box-shadow: 0 26px 64px rgba(46, 228, 255, 0.18);
}

.btn.primary:hover {
  border-color: rgba(46, 228, 255, 0.78);
  box-shadow: 0 30px 74px rgba(46, 228, 255, 0.22);
}

.btn.on-dark {
  background: rgba(8, 14, 28, 0.62);
  color: var(--ink);
  border-color: rgba(90, 130, 190, 0.36);
  box-shadow: 0 16px 36px rgba(2, 6, 16, 0.62);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(90, 130, 190, 0.24);
}

.btn.ghost:hover {
  background: rgba(46, 228, 255, 0.08);
  border-color: rgba(46, 228, 255, 0.36);
}

/* Hero */
header.hero {
  padding: 84px 0 64px;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}

header.hero::before {
  content: "";
  position: absolute;
  inset: -34% 44% 14% -22%;
  background: radial-gradient(circle at 25% 28%, rgba(46, 228, 255, 0.32) 0, transparent 74%);
  filter: blur(24px);
  opacity: 0.85;
  pointer-events: none;
}

header.hero::after {
  content: "";
  position: absolute;
  inset: -28% 18%;
  background: radial-gradient(circle at 82% 12%, rgba(180, 76, 255, 0.18) 0, transparent 68%);
  opacity: 0.8;
  pointer-events: none;
  transform: rotate(8deg);
}

header.hero .container {
  position: relative;
  z-index: 1;
}

header.hero .container::before {
  content: "";
  position: absolute;
  inset: -36px -36px -20px -36px;
  background: linear-gradient(90deg, rgba(4, 8, 16, 0.9) 0%, rgba(4, 8, 16, 0.55) 48%, rgba(4, 8, 16, 0));
  border-radius: 32px;
  filter: blur(8px);
  opacity: 0.92;
  z-index: -1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(46, 228, 255, 0.28);
  background: rgba(46, 228, 255, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(2, 6, 16, 0.6);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(90, 130, 190, 0.26);
  background: rgba(8, 14, 28, 0.42);
  font-size: 13px;
  color: rgba(209, 229, 249, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 200;
  color: var(--ink);
}

h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 18px 0 8px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}

@media (min-width: 900px) {
  h1 { font-size: 64px; }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  header.hero h1 {
    background-image: linear-gradient(114deg, #f6fcff 0%, rgba(237, 246, 255, 0.95) 34%, rgba(46, 228, 255, 0.92) 70%, rgba(180, 76, 255, 0.3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.lead {
  color: rgba(209, 229, 249, 0.86);
  font-size: 18px;
  max-width: 780px;
}

.hero-ctas {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-ctas .btn { margin: 0; }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: rgba(209, 229, 249, 0.9);
}

.cta-link i { font-size: 14px; }

.proof-bar {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.proof-pill {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(90, 130, 190, 0.26);
  background: rgba(4, 7, 18, 0.55);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(209, 229, 249, 0.86);
}

.proof-pill strong {
  margin-right: 6px;
  color: rgba(237, 246, 255, 0.98);
}

/* Sections */
.section { padding: 100px 0; }

.section-alt {
  background: linear-gradient(180deg, #101d38 0%, #132244 50%, #101d38 100%);
  border-top: 1px solid rgba(90, 130, 190, 0.22);
  border-bottom: 1px solid rgba(90, 130, 190, 0.22);
}

.section h2 {
  font-size: 26px;
  margin: 0 0 8px;
}

.section p.sub {
  color: var(--muted);
  max-width: 780px;
  margin: 0 0 24px;
}

/* Grid */
.grid {
  display: grid;
  gap: 16px;
}

.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .grid { gap: 20px; }
}

/* Cards */
.card {
  background: linear-gradient(170deg, rgba(10, 18, 38, 0.92), rgba(6, 10, 24, 0.92));
  border: 1px solid rgba(90, 130, 190, 0.22);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 24px 48px rgba(2, 6, 16, 0.66);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(46, 228, 255, 0.12);
  border-color: rgba(46, 228, 255, 0.28);
}

.card-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.42), rgba(180, 76, 255, 0.18));
  color: var(--accent-ink);
  box-shadow: 0 14px 28px rgba(46, 228, 255, 0.08);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.card-icon i { font-size: 20px; }

.card:hover .card-icon { transform: scale(1.05); }

.card-icon.simple {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  color: var(--accent);
  font-size: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .card {
  box-shadow: none;
  transform: none;
}

.card .card:hover {
  box-shadow: none;
  transform: none;
}

/* Utility Classes */
.small {
  font-size: 14px;
  color: var(--muted);
}

ul.clean {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
}

/* Check List */
.check-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--ink-soft);
  font-size: 15px;
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 14px;
}

/* Step List */
.step-list {
  counter-reset: steps;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.step-list li {
  list-style: none;
  margin: 0;
  padding: 18px 18px 18px 58px;
  border-radius: var(--radius);
  border: 1px solid rgba(90, 130, 190, 0.24);
  background: linear-gradient(150deg, rgba(8, 14, 28, 0.8), rgba(10, 18, 38, 0.82));
  position: relative;
  box-shadow: 0 18px 38px rgba(2, 6, 16, 0.7);
}

.step-list li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 13px;
}

/* Stat Grid */
.stat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 24px 0 0;
  padding: 0;
}

.stat-card {
  border: 1px solid rgba(90, 130, 190, 0.24);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(150deg, rgba(8, 14, 28, 0.88), rgba(10, 18, 38, 0.82));
  box-shadow: 0 18px 44px rgba(2, 6, 16, 0.7);
}

.stat-card strong {
  display: block;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Principles List */
.principles-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.principles-list li {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(90, 130, 190, 0.22);
  background: linear-gradient(150deg, rgba(8, 14, 28, 0.9), rgba(10, 18, 38, 0.86));
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(209, 229, 249, 0.86);
}

/* CTA Band */
.cta-band {
  background: var(--cta-gradient);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(46, 228, 255, 0.22);
  box-shadow: 0 36px 72px rgba(2, 6, 16, 0.72);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.cta-header h2 { color: var(--ink); }

.cta-band .cta-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-actions { display: none; }

.cta-band .btn { border-color: transparent; }

.cta-band .btn.on-dark {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: rgba(46, 228, 255, 0.65);
  box-shadow: 0 18px 44px rgba(46, 228, 255, 0.14);
}

.cta-band .btn.outline {
  background: transparent;
  border: 1px solid rgba(90, 130, 190, 0.4);
  color: var(--ink);
}

.cta-band .small { color: rgba(209, 229, 249, 0.82); }
.cta-band .small a { color: inherit; text-decoration: underline; }

.cta-layout {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .cta-layout { grid-template-columns: 1fr 1fr; }
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 14px;
  background: linear-gradient(150deg, rgba(8, 14, 28, 0.88), rgba(10, 18, 38, 0.84));
  padding: 26px;
  border-radius: 20px;
  border: 1px solid rgba(90, 130, 190, 0.26);
  box-shadow: 0 26px 60px rgba(2, 6, 16, 0.74);
  height: 100%;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgba(245, 239, 226, 0.82);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(90, 130, 190, 0.24);
  background: rgba(4, 7, 18, 0.62);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(46, 228, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(46, 228, 255, 0.22);
  background: rgba(4, 7, 18, 0.78);
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form button { margin-top: 6px; justify-self: start; }
.contact-form button.btn { padding: 10px 18px; }

.contact-form [data-contact-status] { margin: 4px 0 0; color: rgba(245, 239, 226, 0.78); }
.contact-form [data-contact-status][data-tone="success"] { color: #a7f3d0; }
.contact-form [data-contact-status][data-tone="error"] { color: #fecdd3; }

/* CTA Scheduling */
.cta-scheduling {
  background: linear-gradient(150deg, rgba(8, 14, 28, 0.84), rgba(10, 18, 38, 0.8));
  border: 1px solid rgba(90, 130, 190, 0.22);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 26px 60px rgba(2, 6, 16, 0.74);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cta-scheduling iframe {
  width: 100%;
  flex: 1;
  border-radius: 12px;
  background: #0c1624;
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--tag-border);
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.12), rgba(90, 130, 190, 0.08));
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag i {
  font-size: 16px;
  line-height: 1;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(90, 130, 190, 0.22);
  padding: 32px 0;
  color: rgba(209, 229, 249, 0.78);
  font-size: 14px;
  background: linear-gradient(135deg, rgba(4, 7, 18, 0.96), rgba(7, 17, 42, 0.92));
  backdrop-filter: blur(8px);
}

.footer a {
  color: rgba(245, 239, 226, 0.88);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

/* Trust Page Specific */
.trust-hero {
  margin-bottom: 36px;
}

.trust-hero h1 {
  margin: 0 0 12px;
  font-size: 40px;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.trust-hero p {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
}

.trust-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: 100%;
}

.trust-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-family: var(--font-heading);
}

.trust-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.trust-cta {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(46, 228, 255, 0.22);
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.14), rgba(10, 18, 38, 0.92), rgba(180, 76, 255, 0.08));
  box-shadow: var(--shadow);
}

.trust-cta h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-family: var(--font-heading);
}

.trust-cta p {
  margin: 0 0 16px;
  color: var(--muted);
}

.trust-cta a.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.96), rgba(46, 228, 255, 0.78));
  color: var(--accent-ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(46, 228, 255, 0.6);
  box-shadow: 0 20px 44px rgba(46, 228, 255, 0.14);
}

/* Card Media */
.card-media {
  position: relative;
  display: block;
  height: 156px;
  margin: -6px 0 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 14, 28, 0.95), rgba(10, 18, 38, 0.92));
  border: 1px solid rgba(90, 130, 190, 0.26);
  box-shadow: 0 22px 44px rgba(2, 6, 16, 0.7);
  overflow: hidden;
}

.card-media span {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 246, 236, 0.74);
}

.card-media.terminal {
  padding: 20px;
  border: 1px solid rgba(219, 79, 141, 0.42);
  background: linear-gradient(165deg, #142640, #321b3f);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 28px 54px rgba(58, 140, 230, 0.3);
  color: #f7eaff;
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.card-media.analytics {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media.analytics img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  box-shadow: 0 22px 46px rgba(58, 140, 230, 0.28);
}

.card-media.terminal .term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-media.terminal .term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.85;
}

.card-media.terminal .term-dot.red { background: #f87171; }
.card-media.terminal .term-dot.yellow { background: #facc15; }
.card-media.terminal .term-dot.green { background: #34d399; }

.card-media.terminal .term-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd166;
}

.card-media.terminal pre {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Card Flag */
.card-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.18), rgba(180, 76, 255, 0.10));
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.card-flag i {
  font-size: 16px;
  line-height: 1;
}

/* Architecture Diagram */
.arch-shell {
  margin-top: 28px;
  border-radius: 32px;
  padding: 32px;
  border: 1px solid rgba(90, 130, 190, 0.24);
  background: linear-gradient(135deg, rgba(8, 14, 28, 0.92), rgba(10, 18, 38, 0.9));
  box-shadow: 0 32px 68px rgba(2, 6, 16, 0.68);
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.arch-panel {
  position: relative;
  border-radius: 24px;
  padding: 26px;
  border: 1px solid rgba(90, 130, 190, 0.28);
  background: linear-gradient(155deg, rgba(8, 14, 28, 0.9), rgba(10, 18, 38, 0.88));
  box-shadow: 0 26px 52px rgba(2, 6, 16, 0.68);
}

.arch-panel h3 {
  margin: 0;
  font-size: 16px;
  font-family: var(--font-heading);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.78);
}

.arch-panel p {
  margin: 8px 0 16px;
  color: rgba(183, 200, 224, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.arch-before .arch-cloud {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.arch-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(90, 130, 190, 0.32);
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.12), rgba(10, 18, 38, 0.7));
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(2, 6, 16, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arch-chip:nth-child(odd) { transform: rotate(-3deg); }
.arch-chip:nth-child(even) { transform: rotate(4deg); }
.arch-chip:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 20px 36px rgba(46, 228, 255, 0.12);
}

.arch-before::after {
  content: "";
  position: absolute;
  inset: 24px auto 24px 50%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(46, 228, 255, 0.14) 0, transparent 70%);
  filter: blur(8px);
  opacity: 0.85;
  pointer-events: none;
}

.arch-after {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arch-stack {
  position: relative;
  padding-left: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.arch-stack::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 143, 22, 0.85), rgba(31, 106, 199, 0));
}

.arch-tier {
  position: relative;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(90, 130, 190, 0.24);
  background: linear-gradient(155deg, rgba(8, 14, 28, 0.9), rgba(10, 18, 38, 0.88));
  box-shadow: 0 20px 40px rgba(2, 6, 16, 0.7);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.arch-tier::before {
  content: "";
  position: absolute;
  left: -28px;
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ruler);
  border: 3px solid rgba(46, 228, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(90, 130, 190, 0.16);
}

.arch-tier:first-child::before {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
}

.arch-tier .arch-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.26), rgba(180, 76, 255, 0.12));
  color: var(--accent-ink);
  box-shadow: 0 12px 26px rgba(2, 6, 16, 0.7);
}

.arch-tier .arch-icon i { font-size: 18px; }
.arch-tier h4 {
  margin: 0;
  font-size: 15px;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  color: var(--ink);
}

.arch-tier .small {
  margin: 4px 0 0;
  color: var(--muted);
}

.arch-tier[data-tone="control"] {
  border: 1px solid rgba(46, 228, 255, 0.26);
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.14), rgba(10, 18, 38, 0.92));
  color: var(--ink);
  box-shadow: 0 34px 72px rgba(46, 228, 255, 0.10);
}

.arch-tier[data-tone="control"]::before {
  border-color: rgba(46, 228, 255, 0.62);
  background: rgba(46, 228, 255, 0.22);
  box-shadow: 0 0 0 5px rgba(180, 76, 255, 0.12);
}

.arch-tier[data-tone="control"] .arch-icon {
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.32), rgba(180, 76, 255, 0.14));
  color: var(--accent-ink);
}

.arch-tier[data-tone="control"] h4 { color: var(--ink); }
.arch-tier[data-tone="control"] .small { color: rgba(209, 229, 249, 0.9); }

.arch-tier[data-tone="devs"] .arch-icon {
  background: linear-gradient(135deg, rgba(46, 228, 255, 0.22), rgba(10, 18, 38, 0.8));
  color: var(--accent-ink);
}

.arch-tier[data-tone="stack"] .arch-icon {
  background: linear-gradient(135deg, rgba(90, 130, 190, 0.24), rgba(10, 18, 38, 0.8));
  color: var(--accent-ink);
}

.arch-tier[data-tone="llms"] .arch-icon {
  background: linear-gradient(135deg, rgba(180, 76, 255, 0.18), rgba(10, 18, 38, 0.8));
  color: var(--accent-ink);
}

.arcticrex-plane {
  border: 2px solid rgba(46, 228, 255, 0.36);
  border-style: solid dashed;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(8, 14, 28, 0.92), rgba(10, 18, 38, 0.88));
  box-shadow: 0 24px 48px rgba(2, 6, 16, 0.7);
}
