/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
  --bg: #0d0d0f;
  --bg-alt: #131316;
  --text: #f3f3f5;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;
  --border: #27272a;
  --border-hairline: rgba(255, 255, 255, 0.06);
  --accent: #d4af37;
  --gold: #e5c158;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   BASE STYLES & RESET 
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

/* ==========================================================================
   TYPOGRAPHY & BUTTONS
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

p {
  color: var(--text-dim);
  line-height: 1.6;
}

.accent {
  color: var(--accent);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--text-faint);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  height: 64px;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-hairline);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 180px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(212, 175, 55, 0.14), transparent 70%),
              radial-gradient(45% 45% at 78% 10%, rgba(229, 193, 88, 0.12), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: driftGlow 22s ease-in-out infinite alternate;
}

@keyframes driftGlow {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(2%, 3%, 0) scale(1.06); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 18px;
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.hero-meta div {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.4;
}

.hero-meta strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 500;
}

.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1 / 1.02;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(212, 175, 55, 0.16), transparent 62%),
    linear-gradient(165deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 12%;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(38% 38% at 50% 42%, rgba(229, 193, 88, 0.20), transparent 72%);
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  max-width: 380px;
  height: auto;
  opacity: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 32%, rgba(255, 248, 220, 0.4) 47%, rgba(212, 175, 55, 0.3) 58%, transparent 74%);
  background-size: 250% 250%;
  background-position: -40% -40%;
  animation: sheen 3.2s var(--ease) 0.6s 1 forwards;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

@keyframes sheen {
  0% { background-position: -60% -60%; opacity: 0; }
  15% { opacity: 1; }
  60% { background-position: 60% 60%; opacity: 0.9; }
  100% { background-position: 120% 120%; opacity: 0; }
}

/* ==========================================================================
   MARQUEE STRIP
   ========================================================================== */
.strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 20px 0;
  overflow: hidden;
}

.strip .container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  white-space: nowrap;
}

.strip span {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

/* ==========================================================================
   STUDIO SECTION & VERTICAL TICKER
   ========================================================================== */
.section {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.about-lede {
  font-size: 22px;
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.4;
}

.about-ticker {
  margin-top: 28px;
}

.ticker-viewport {
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  overflow: hidden;
  position: relative;
}

.ticker-track {
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.ticker-track.no-transition {
  transition: none;
}

.ticker-track li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 2px;
  font-size: 15.5px;
  box-sizing: border-box;
}

.ticker-track li span:first-child {
  color: var(--text);
  font-weight: 500;
}

.ticker-track li span:last-child {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ticker-dots {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.ticker-dot.is-active {
  background: var(--gold);
  transform: scale(1.3);
}

/* Fallback configurations if animation fails or motion is reduced */
.about-ticker.is-static .ticker-viewport { overflow: visible; }
.about-ticker.is-static .ticker-track { transform: none !important; }
.about-ticker.is-static .ticker-track li { border-bottom: 1px solid var(--border-hairline); }
.about-ticker.is-static .ticker-dots { display: none; }

/* ==========================================================================
   PRINCIPLES GRID
   ========================================================================== */
.section-head {
  max-width: 600px;
  margin-bottom: 60px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.principle-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 20px;
}

.principle h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.principle p {
  font-size: 14.5px;
}

/* ==========================================================================
   VALUES STATEMENT (MISSION)
   ========================================================================== */
.mission {
  background: var(--bg-alt);
  padding: 140px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.mission-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mission blockquote {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 32px;
}

.mission-sub {
  font-size: 16.5px;
  margin-bottom: 40px;
}

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.product-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

.product-status {
  font-size: 12px;
  color: var(--text-faint);
}

.product-status.is-live {
  color: var(--gold);
}

.product-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.product-card p {
  font-size: 15px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-link:hover {
  color: var(--gold);
}

.product-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.product-link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   DEVELOPMENT PHILOSOPHY
   ========================================================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
}

.philosophy-copy p {
  font-size: 16.5px;
  margin-bottom: 24px;
}

.philosophy-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}

.philosophy-list li {
  font-size: 14.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.philosophy-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ==========================================================================
   TRUST & TRANSPARENCY
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-card {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.trust-card span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
}

.trust-card h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 12px 0;
}

.trust-card p {
  font-size: 14px;
  margin-bottom: 20px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta {
  text-align: center;
  padding: 140px 0;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.cta p {
  font-size: 16.5px;
  max-width: 500px;
  margin: 0 auto 40px auto;
}

.cta .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-hairline);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
}

.footer-tagline {
  font-size: 14px;
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 20px;
}

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

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
}

/* ==========================================================================
   ANIMATIONS & REVEAL CLASSES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-portrait {
    order: -1;
  }
  .hero-portrait img {
    max-width: 280px;
  }
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav-menu { display: none; } /* Mobile navbar optimization */
  .nav-toggle { display: block; }

  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-hairline);
    padding: 24px;
    gap: 24px;
    align-items: flex-start;
    z-index: 999;
  }

  .nav-menu.is-open .nav-links {
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu.is-open .nav-actions {
    width: 100%;
  }

  .nav-menu.is-open .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .products-grid { grid-template-columns: 1fr; }
  .philosophy-list { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .ticker-track li {
    font-size: 14px;
  }
  .ticker-track li span:first-child { font-size: 13.5px; }
  .ticker-track li span:last-child { font-size: 11px; }
  .hero-meta { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker-track {
    transition: none;
  }
}
/* ==========================================================================
   APP INTERFACE GALLERY
   ========================================================================== */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.gallery-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain; /* Preserves full image without clipping edges */
  border-radius: 8px;
  display: block;
}

.gallery-caption {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

/* Responsive adjustment for tablet/mobile screens */
@media (max-width: 900px) {
  .screenshot-gallery {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
