/* ═══════════════════════════════════════════════════
   Smart Tools — Design System
   Architectural · Precise · Cutting Edge · Clean
   Designed by an architect, for architects.
   ═══════════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette */
  --bg:        #080c14;
  --bg-card:   #0e1420;
  --bg-hover:  #141c2c;
  --bg-panel:  #0b1018;
  --border:    #1a2236;
  --border-lt: #253048;
  --border-acc:#3b82f6;
  --text:      #e8ecf4;
  --text-dim:  #7a8ba4;
  --text-mute: #4a5a72;
  --accent:    #3b82f6;
  --accent-lt: #60a5fa;
  --purple:    #8b5cf6;
  --green:     #22c55e;
  --green-lt:  #34d399;
  --amber:     #f59e0b;
  --rose:      #f43f5e;
  --teal:      #14b8a6;

  /* Layout */
  --max-w:     1200px;
  --max-w-sm:  720px;

  /* Spacing scale (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;

  /* Sharp architectural radii */
  --radius:    2px;
  --radius-lg: 3px;

  /* Fonts */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  font-size: 15px;
}

a { color: var(--accent-lt); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

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

/* ── Typography ── */
.gradient-text {
  background: linear-gradient(135deg, #e8ecf4 0%, var(--accent-lt) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Architectural label style */
.label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-3); }
.container-sm { max-width: var(--max-w-sm); margin: 0 auto; padding: 0 var(--sp-3); }
.section { padding: var(--sp-12) 0; }
.section-sm { padding: var(--sp-8) 0; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-3);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-brand:hover { color: var(--text); }
.nav-brand img { height: 24px; width: auto; }
.nav-links {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
}
.nav-links a {
  color: var(--text-mute);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

/* ── Buttons — Architectural: sharp, outlined, with corner ticks ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 11px 28px;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}
.btn:hover { text-decoration: none; }

/* Corner ticks on buttons */
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  pointer-events: none;
  transition: all 0.15s ease;
}
.btn::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  opacity: 0.4;
}
.btn::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: 0.4;
}
.btn:hover::before,
.btn:hover::after {
  width: 8px;
  height: 8px;
  opacity: 0.8;
}

.btn-primary {
  background: transparent;
  color: var(--accent-lt);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-lt);
}
.btn-secondary:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mute);
  border: none;
  padding: 11px 20px;
}
.btn-ghost::before,
.btn-ghost::after { display: none; }
.btn-ghost:hover { color: var(--text); }

.btn-sm {
  padding: 8px 20px;
  font-size: 0.72rem;
}
.btn-sm::before,
.btn-sm::after {
  width: 5px;
  height: 5px;
}

.btn-lg {
  padding: 14px 40px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.btn-full { display: flex; width: 100%; text-align: center; justify-content: center; }

/* ── Cards — Panel-framed ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  transition: border-color 0.2s;
  position: relative;
}
.card:hover { border-color: var(--border-lt); }

.card-featured {
  border-color: var(--accent);
}

/* ── Panel — Architectural framed module ── */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 0;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.06);
  color: var(--accent-lt);
}
.badge-green {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--green-lt);
}
.badge-purple {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}
.badge-amber {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* ── Feature Icon ── */
.icon-box {
  width: var(--sp-6);
  height: var(--sp-6);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--sp-2);
  flex-shrink: 0;
}
.icon-box.blue    { background: rgba(59, 130, 246, 0.08); color: var(--accent-lt); border: 1px solid rgba(59, 130, 246, 0.15); }
.icon-box.green   { background: rgba(34, 197, 94, 0.08); color: var(--green-lt); border: 1px solid rgba(34, 197, 94, 0.15); }
.icon-box.purple  { background: rgba(139, 92, 246, 0.08); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.15); }
.icon-box.amber   { background: rgba(245, 158, 11, 0.08); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.15); }
.icon-box.teal    { background: rgba(20, 184, 166, 0.08); color: #5eead4; border: 1px solid rgba(20, 184, 166, 0.15); }
.icon-box.rose    { background: rgba(244, 63, 94, 0.08); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.15); }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: var(--sp-12) var(--sp-3) var(--sp-10);
  max-width: 840px;
  margin: 0 auto;
  position: relative;
}
.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.04em;
}
.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto var(--sp-5);
  line-height: 1.7;
  font-weight: 400;
}
.hero-buttons {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--sp-1);
  letter-spacing: -0.03em;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Divider — Architectural hairline ── */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Section Divider with label ── */
.labeled-rule {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: var(--sp-8) 0;
}
.labeled-rule::before,
.labeled-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-6) var(--sp-3);
  margin-top: var(--sp-8);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-6);
}
.footer-brand {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-1);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  gap: var(--sp-8);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  margin-bottom: var(--sp-2);
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 3px 0;
}
.footer-col a:hover { color: var(--text); }

/* ── Check list ── */
.check-list { list-style: none; }
.check-list li {
  padding: 6px 0;
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  line-height: 1.5;
}
.check-list li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: var(--sp-2); }
.step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 1px solid var(--accent);
  color: var(--accent-lt);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.step-body h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.step-body p { color: var(--text-dim); font-size: 0.88rem; }

/* ── FAQ ── */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-3);
  margin-bottom: var(--sp-1);
}
.faq-item h4 {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.faq-item p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── Form Elements ── */
.input {
  width: 100%;
  padding: 11px var(--sp-2);
  border: 1px solid var(--border-lt);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
}
.input::placeholder { color: var(--text-mute); }

label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

/* ── Spinner ── */
.spinner { display: none; }
.spinner.active { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: var(--sp-1);
}

/* ── Architectural Accents ── */

/* Accent line */
.geo-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: var(--sp-3);
}
.geo-line.center { margin-left: auto; margin-right: auto; }

/* Grid background */
.geo-bg {
  position: relative;
}
.geo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.025) 1px, transparent 1px);
  background-size: var(--sp-8) var(--sp-8);
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Corner marks — drawing registration ticks */
.geo-corners {
  position: relative;
}
.geo-corners::before,
.geo-corners::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.3;
}
.geo-corners::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.geo-corners::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

/* Crosshair dot */
.glow-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--accent);
  display: inline-block;
}

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-lt);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .section { padding: var(--sp-8) 0; }
  .section-header h2 { font-size: 1.6rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: var(--sp-4); }
  .footer-links { flex-direction: column; gap: var(--sp-3); }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--sp-2) var(--sp-3);
    gap: var(--sp-2);
  }
  .nav-links.open { display: flex; }
}
