/* ============================================================
   WizCoders — company landing page
   Deliberately its own identity, not a reskin of any one product's
   site: a dark, terminal-flavored studio shell that individual app
   cards borrow accent color from (Finora's real green, the trip
   app's travel orange) — the company is the constant, the products
   are the color.
   ============================================================ */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #0a0e14;
  --surface: #121821;
  --surface-raised: #1a2230;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #edf1f4;
  --text-dim: #8b98a5;
  --text-dimmer: #5c6773;

  --brand: #8b7bff;
  --brand-dim: #6a5ce0;

  --finora: #2db17a;
  --finora-dim: rgba(45, 177, 122, 0.14);
  --trip: #ff8a4c;
  --trip-dim: rgba(255, 138, 76, 0.14);
  --future: #6b7684;

  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", ui-monospace,
    Menlo, Consolas, monospace;
  --body: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(139, 123, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(45, 177, 122, 0.10), transparent 60%);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--mono); }

/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #0a0e14;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #0a0e14; }
.btn-brand:hover { background: #9d8fff; }
.btn-outline { border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text-dim); }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero { padding: 96px 0 72px; }
.hero .container { max-width: 780px; }

.prompt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--brand);
  background: rgba(139, 123, 255, 0.1);
  border: 1px solid rgba(139, 123, 255, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--brand);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 54px);
}
.hero h1 span { color: var(--text-dimmer); }

.hero-sub {
  margin-top: 22px;
  font-size: 17.5px;
  max-width: 56ch;
  color: var(--text-dim);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 10px;
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dimmer);
}
.hero-meta span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--line-strong); }

/* ---------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------- */
.section { padding: 40px 0 100px; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head .prompt { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head p { margin-top: 14px; font-size: 16px; }

.work-subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 19px;
  color: var(--finora);
}
.work-subhead .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--finora);
  box-shadow: 0 0 0 4px var(--finora-dim);
  flex-shrink: 0;
}

/* Neither store listing exists yet, so these are deliberately inert
   (span, not a/button) and visually muted rather than a live/dead link —
   generic play-triangle / device-outline glyphs, not the real Apple/Google
   marks, since no real listing exists to legitimately badge yet. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.62;
  cursor: default;
}
.store-badge .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-dimmer);
}
.store-badge .text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.store-badge .text em {
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dimmer);
}

/* ---------------------------------------------------------
   Screenshot carousel
   --------------------------------------------------------- */
.carousel-wrap { position: relative; }

.carousel-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.carousel-btn:hover { border-color: var(--brand); color: var(--brand); }

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 8px;
  margin: 0 -4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-slide {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 220px;
}
.carousel-slide .frame {
  border-radius: 20px;
  overflow: hidden;
  background: #0d1218;
  border: 1px solid var(--line);
  box-shadow: 0 24px 44px -16px rgba(0, 0, 0, 0.55);
}
.carousel-slide .frame .bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.carousel-slide .frame .bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.carousel-slide .frame img { width: 100%; display: block; }

.carousel-caption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.carousel-caption b {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  margin-bottom: 4px;
}

@media (max-width: 680px) {
  .carousel-controls { display: none; }
}

/* ---------------------------------------------------------
   Principles
   --------------------------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.principle {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.principle .num {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--brand);
  margin-bottom: 14px;
  display: block;
}
.principle h4 { font-size: 17px; margin-bottom: 10px; }
.principle p { font-size: 14.5px; }

/* ---------------------------------------------------------
   Contact / CTA band
   --------------------------------------------------------- */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 28px); }
.cta-band p { margin-top: 10px; font-size: 15px; }
.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14.5px;
}
.cta-contacts a:hover { color: var(--brand); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dimmer);
}
.footer-row a:hover { color: var(--text-dim); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a, .nav-links .btn { padding: 14px 0; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 48px; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}
