/* ============================================================
   Thesis Desk — landing page styles
   Palette: ink_navy #1E2A3A · amber #F5A623 · cream #F4EBDD
   ============================================================ */

:root {
  --ink: #1E2A3A;
  --ink-soft: #2c3a4d;
  --ink-muted: #5b6b80;
  --amber: #F5A623;
  --amber-dark: #d88f14;
  --amber-light: #ffc266;
  --cream: #F4EBDD;
  --cream-bright: #FDEECE; /* logo background blend */
  --paper: #ffffff;
  --paper-soft: #fbf7f0;
  --line: #e7dcc9;
  --shadow: 0 10px 30px rgba(30, 42, 58, 0.10);
  --shadow-lg: 0 20px 50px rgba(30, 42, 58, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--amber-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}
.nav-brand:hover { text-decoration: none; }

.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--amber-dark);
  text-decoration: none;
}

.nav-cta {
  background: var(--amber);
  color: var(--ink) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover {
  background: var(--amber-light);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-bright) 0%, var(--cream) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.35);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.hero-copy h1 .accent {
  color: var(--amber-dark);
}

.hero-slogan {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream-bright);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--ink-soft); }

.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-amber:hover { background: var(--amber-light); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: rgba(30, 42, 58, 0.06); }

.btn .meta {
  font-weight: 500;
  font-size: 0.78rem;
  opacity: 0.75;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.hero-visual {
  text-align: center;
}

.hero-visual .banner {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.hero-visual .logo-round {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  border: 4px solid var(--cream);
}

/* ---------- Sections ---------- */
section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.6rem;
}

.alt-bg {
  background: var(--paper-soft);
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(245, 166, 35, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.feature p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ---------- Screenshots gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.4rem;
}

.shot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.shot:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.shot img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.shot figcaption {
  padding: 0.7rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.step .num {
  counter-increment: step;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cream-bright);
  background: var(--amber-dark);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step .num::before { content: counter(step); }

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.step p {
  font-size: 0.93rem;
  color: var(--ink-muted);
}

/* ---------- Download ---------- */
.download {
  text-align: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--cream-bright);
}

.download h2 {
  color: var(--cream-bright);
}

.download .section-head p {
  color: rgba(244, 235, 221, 0.85);
}

.download-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 40rem;
  margin: 0 auto;
}

.download-card .dlogo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 1.1rem;
  box-shadow: var(--shadow-lg);
}

.download-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.download-card .version {
  font-size: 0.85rem;
  color: rgba(244, 235, 221, 0.75);
  margin-bottom: 1.4rem;
}

.download-card .btn-primary {
  background: var(--amber);
  color: var(--ink);
  font-size: 1.1rem;
  padding: 1rem 2rem;
}
.download-card .btn-primary:hover { background: var(--amber-light); }

.download-card .meta {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: rgba(244, 235, 221, 0.7);
}

/* ---------- X / social ---------- */
.social-cta {
  text-align: center;
}

.x-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--ink);
  color: var(--cream-bright);
  border-radius: var(--radius);
  padding: 1.1rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.x-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.x-card .x-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--cream-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}

.x-card .label {
  font-size: 1.05rem;
  font-weight: 700;
}

.x-card .handle {
  font-size: 0.85rem;
  color: rgba(244, 235, 221, 0.75);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(244, 235, 221, 0.85);
  padding: 3rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--cream-bright);
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: rgba(244, 235, 221, 0.85);
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--amber-light);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(244, 235, 221, 0.6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

/* ---------- Legal pages ---------- */
.legal-page {
  background: var(--cream);
}

.legal-hero {
  padding: 3.5rem 0 0;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
}

.legal-hero .meta {
  color: var(--ink-muted);
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
  margin-top: 2.5rem;
  margin-bottom: 4rem;
}

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.9rem;
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.legal-body ul {
  margin: 0 0 1rem 1.4rem;
  color: var(--ink-muted);
}

.legal-body li {
  margin-bottom: 0.5rem;
}

.legal-body code {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-size: 0.9em;
  color: var(--ink);
}

.legal-body strong {
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }
  .hero-visual { order: -1; }
  .hero-copy { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-note { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: none; }
  .nav-toggle { display: block; }

  section { padding: 3.5rem 0; }
  .legal-body { padding: 2rem 1.4rem; border-radius: var(--radius); margin-top: 1.75rem; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
