/* ------------------------------------------------------------------
   Devimation Studio website — base styles
   Colours live in the variables below; auth.css and the Flask templates
   rely on these exact names, so tune values but never rename them.

   Palette follows the app: near-black ground, neutral zinc panels, blue
   for primary actions, green for positive/active states, and the brand
   green-to-blue gradient reserved for a few signature moments.
   ------------------------------------------------------------------ */

:root {
  --primary: #00a9ff;
  --primary-hover: #38bdf8;
  --primary-soft: rgba(0, 169, 255, 0.12);
  --primary-glow: rgba(0, 169, 255, 0.35);
  --bg: #0a0a0c;
  --panel: #131316;
  --panel-raised: #18181c;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --border: #232328;
  --border-strong: #3a3a42;
  --input-bg: #0e0e11;
  --tab-bg: #18181c;
  --hero-bg: transparent;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: none;
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.12);
  --gradient: linear-gradient(90deg, #5dec20 0%, #14c8c0 38%, #0a8cff 68%, #1a2fd6 100%);
  --gradient-vertical: linear-gradient(180deg, #5dec20 0%, #14c8c0 38%, #0a8cff 68%, #1a2fd6 100%);
  --gradient-button: linear-gradient(90deg, #5dec20 0%, #14c8c0 50%, #00a9ff 100%);
  --on-primary: #06131c;
  --font-heading: "Barlow", "Bahnschrift", "DIN Alternate", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Self-hosted fonts (SIL Open Font License, see assets/fonts/OFL-*.txt).
   No external requests: the site works offline and on localhost. */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/barlow-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/barlow-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/barlow-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/inter-variable-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
.brand-text {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.01em;
  max-width: 34ch;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--primary-hover);
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
}

/* Header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 8px 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 0;
  background: transparent;
  padding: 0;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 600;
}

.menu {
  display: flex;
  gap: 4px;
}

.menu a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.menu a:hover {
  color: var(--text);
}

.menu a.is-active {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--green);
  border-radius: 0;
}

/* Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: 64px 0 0;
  background: var(--hero-bg);
}

.hero::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 40px;
  background: var(--gradient);
  opacity: 0.9;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px;
  align-items: end;
  padding-top: 72px;
}

.hero-home::after {
  display: none;
}

.hero-main h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 26px;
}

.hero-main h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 5px;
  margin-top: 26px;
  border-radius: 3px;
  background: var(--gradient);
}

.hero-main .hero-subtitle {
  max-width: 54ch;
  font-size: 1.15rem;
}

.hero-side {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 6px;
}

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  color: var(--text);
  font-size: 1rem;
}

.hero-facts li {
  position: relative;
  padding-left: 30px;
  line-height: 1.45;
}

.hero-facts li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 12px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
}

.hero-figure {
  grid-column: 1 / -1;
  position: relative;
  margin: 56px 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: #09090b;
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  animation: rise-in 0.8s ease both;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gradient);
  z-index: 1;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Buttons: flat brand blue like the app; the gradient is reserved for
   the marketing calls to action (.btn-hero). ------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

.btn:active {
  filter: brightness(0.94);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-hero {
  background: var(--gradient-button);
  color: var(--on-primary);
}

.btn-hero:hover {
  background: var(--gradient-button);
  filter: brightness(1.08);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--border-strong);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--text);
}

/* Sections -------------------------------------------------------- */

.section {
  padding: 72px 0 0;
}

.section-head p {
  color: var(--muted);
  margin-top: -14px;
  margin-bottom: 28px;
  max-width: 70ch;
}

/* Text blocks: hairline above each item instead of a boxed card ----- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
}

.card {
  border-top: 1px solid var(--border);
  padding: 20px 0 22px;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card p + p {
  margin-top: 10px;
}

/* Spec sheet: title column left, body right (system requirements) */

.cards-spec {
  grid-template-columns: 1fr;
  gap: 0;
}

.cards-spec .card {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 24px;
  padding: 18px 0;
}

.cards-spec .card h3 {
  margin: 0;
}

.cards-spec .card p {
  max-width: 68ch;
}

.cards-spec .card:last-child {
  border-bottom: 1px solid var(--border);
}

/* Two wide columns (benefits, home next-steps) */

.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-link {
  color: var(--primary-hover);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Roadmap: first phase is the live one ----------------------------- */

.phase {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 6px;
}

.roadmap-card:first-child .phase {
  color: var(--green);
}

/* App previews: image plus caption, no box ------------------------- */

.app-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.app-preview-card img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #09090b;
}

.app-preview-meta {
  padding: 14px 0 0;
}

.app-preview-meta h3 {
  margin: 0 0 4px;
}

.app-preview-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Workflow: one numbered sequence along a gradient spine ----------- */

.steps {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 800px;
  padding-left: 28px;
}

.steps::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--gradient-vertical);
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step p {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
}

.step-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Pricing table ---------------------------------------------------- */

.price-table-wrap {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

.price-table thead th:first-child {
  text-align: left;
  padding-left: 0;
}

.price-table thead th {
  border-top: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding-top: 0;
  padding-bottom: 10px;
}

.price-table thead tr:first-child th {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 4px;
}

.price-table thead tr:first-child th.is-launch {
  color: var(--green);
}

.price-table th[scope="row"] {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  padding-left: 0;
}

.price-table td.is-launch,
.price-table th.is-launch {
  background: var(--green-soft);
}

.price-table td.num {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.price-table td.num small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

.price-table td.total {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-table td.action {
  padding-right: 0;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 1px solid var(--border);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

/* Contact & footer ------------------------------------------------- */

.contact {
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.contact h2 {
  margin: 0 auto 12px;
}

.contact p {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 24px;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer .container {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0;
}

.footer-wordmark {
  height: 22px;
  width: auto;
  display: block;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

/* Motion ----------------------------------------------------------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-figure {
    animation: none;
  }
}

/* Responsive ------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-home {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-side {
    padding-bottom: 0;
  }

  .app-preview-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(1120px, 100% - 32px);
  }

  .nav {
    flex-wrap: wrap;
    gap: 6px;
  }

  .menu {
    width: 100%;
    flex-wrap: wrap;
    gap: 2px 8px;
    border-top: 1px solid var(--border);
    padding-top: 6px;
    margin-bottom: 2px;
  }

  .menu a {
    font-size: 0.9rem;
    padding: 6px 8px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero::after {
    margin-top: 28px;
  }

  .hero-home {
    padding-top: 40px;
    gap: 22px;
  }

  h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.4rem);
    max-width: none;
  }

  .hero-main h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
    max-width: none;
  }

  .hero-main h1::after {
    margin-top: 18px;
  }

  .hero-main .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-figure {
    margin-top: 32px;
  }

  .hero-figure img {
    max-height: 260px;
  }

  .section {
    padding-top: 52px;
  }

  .hero-actions {
    gap: 8px;
  }

  .btn {
    width: 100%;
  }

  .cards,
  .cards-2,
  .app-preview-grid {
    grid-template-columns: 1fr;
  }

  .cards-spec .card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .steps {
    padding-left: 20px;
  }

  .step {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .step-number {
    font-size: 1.25rem;
  }

  /* Pricing table becomes one block per term */
  .price-table thead {
    display: none;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
    white-space: normal;
  }

  .price-table tr {
    border-top: 1px solid var(--border);
    padding: 16px 0 18px;
  }

  .price-table tbody tr:last-child {
    border-bottom: 1px solid var(--border);
  }

  .price-table th[scope="row"] {
    border: 0;
    padding: 0 0 10px;
    font-size: 1.25rem;
  }

  .price-table td {
    border: 0;
    padding: 6px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
  }

  .price-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
  }

  .price-table td.is-launch {
    background: transparent;
  }

  .price-table td.is-launch::before {
    color: var(--green);
  }

  .price-table td.num {
    font-size: 1.05rem;
  }

  .price-table td.num small {
    display: none;
  }

  .price-table td.action {
    display: block;
    padding-top: 12px;
  }

  .price-table td.action::before {
    display: none;
  }

  .price-table tbody tr:last-child th,
  .price-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .btn-sm {
    width: 100%;
  }

  .contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .site-footer .container {
    padding: 18px 0;
  }
}
