/* ═══════════════════════════════════════════════
   BENTO LABS — Design System
   Deep Navy + Cool Blue Accents
   ═══════════════════════════════════════════════ */

/* ── FONTS ── */
@font-face {
  font-family: 'SF Pro Display';
  src: local('SF Pro Display'), local('.SFNSDisplay'), local('SFProDisplay-Regular');
  font-weight: 400;
}
@font-face {
  font-family: 'SF Pro Display';
  src: local('SF Pro Display Medium'), local('.SFNSDisplay-Medium'), local('SFProDisplay-Medium');
  font-weight: 500;
}
@font-face {
  font-family: 'SF Pro Display';
  src: local('SF Pro Display Semibold'), local('.SFNSDisplay-Semibold'), local('SFProDisplay-Semibold');
  font-weight: 600;
}
@font-face {
  font-family: 'SF Pro Text';
  src: local('SF Pro Text'), local('.SFNSText'), local('SFProText-Regular');
  font-weight: 400;
}
@font-face {
  font-family: 'SF Pro Text';
  src: local('SF Pro Text Medium'), local('.SFNSText-Medium'), local('SFProText-Medium');
  font-weight: 500;
}
@font-face {
  font-family: 'Futura';
  src: local('Futura Bold'), local('Futura-Bold');
  font-weight: 700;
}

/* ── DESIGN TOKENS ── */
:root {
  /* palette */
  --bg-primary: #0B1120;
  --bg-secondary: #0D1425;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(107,143,247,0.3);
  --accent: #6B8FF7;
  --accent-deep: #5A7DE6;
  --accent-light: #93BBFF;
  --accent-glow: rgba(107,143,247,0.15);
  --text-primary: #E2E8F0;
  --text-secondary: rgba(255,255,255,0.45);
  --text-muted: rgba(255,255,255,0.3);

  /* typography */
  --font-logo: 'Futura', 'Jost', sans-serif;
  --font-display: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'SF Pro Text', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  /* spacing */
  --section-pad: 96px 32px;
  --max-width: 1120px;

  /* transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,17,32,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.nav.scrolled {
  box-shadow: 0 1px 24px rgba(0,0,0,0.3);
  background: rgba(11,17,32,0.95);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero-orb--1 {
  width: 600px; height: 600px;
  top: -20%; right: -10%;
  background: radial-gradient(circle, rgba(107,143,247,0.1) 0%, transparent 70%);
}
.hero-orb--2 {
  width: 400px; height: 400px;
  bottom: -10%; left: -5%;
  background: radial-gradient(circle, rgba(147,187,255,0.06) 0%, transparent 70%);
}
.hero-orb--3 {
  width: 300px; height: 300px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(107,143,247,0.04) 0%, transparent 70%);
}
.hero-content {
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.hero-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(107,143,247,0.25);
}
.hero-cta svg {
  width: 16px; height: 16px;
  transition: transform 0.3s var(--ease-out);
}
.hero-cta:hover svg { transform: translateX(3px); }

/* ── SECTION SYSTEM ── */
section {
  padding: var(--section-pad);
  position: relative;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.section--alt { background: var(--bg-secondary); }

/* ── ABOUT / VISION ── */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.vision-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.vision-values {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.value-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(107,143,247,0.08);
  transform: translateY(-2px);
}
.value-card:hover::before {
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 1;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.value-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── PROJECT CARDS ── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.3s var(--ease-out);
  position: relative;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}
.project-card:hover {
  border-color: rgba(107,143,247,0.2);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(107,143,247,0.1);
  transform: translateY(-3px);
}
.project-card:hover::before {
  background: linear-gradient(135deg, rgba(107,143,247,0.2), transparent 60%);
  opacity: 1;
}
.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.project-visual-inner { text-align: center; position: relative; z-index: 1; }
.project-visual-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 16px;
  opacity: 0.9;
}
.project-visual-sep {
  width: 40px;
  height: 0.5px;
  background: rgba(255,255,255,0.15);
  margin: 12px auto;
}
.project-visual-modes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.project-visual-modes span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.project-info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.project-info p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.3s var(--ease-out);
}
.project-link:hover { gap: 10px; }
.project-link svg { width: 14px; height: 14px; }

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.3s, gap 0.3s var(--ease-out);
}
.back-link:hover { color: var(--text-primary); gap: 10px; }
.back-link svg { width: 14px; height: 14px; }

/* ── DETAIL PAGE SECTIONS ── */
.detail-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.detail-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.detail-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}
.detail-card--full { grid-column: 1 / -1; }

/* ── TECH LIST ── */
.tech-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tech-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.tech-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── VISIT LINK ── */
.visit-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  margin-top: 24px;
}
.visit-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(107,143,247,0.25);
}
.visit-cta svg {
  width: 16px; height: 16px;
  transition: transform 0.3s var(--ease-out);
}
.visit-cta:hover svg { transform: translateX(3px); }

/* ── FORM ── */
.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107,143,247,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-primary); }
.form-submit {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  align-self: flex-start;
}
.form-submit:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(107,143,247,0.2);
}
.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -8px;
}
.form-success {
  display: none;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 32px;
}
.form-success p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FOOTER ── */
.footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  padding: 48px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  opacity: 0.8;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── HERO ANIMATIONS ── */
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(10px, -10px); }
  66% { transform: translate(-5px, 5px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.hero-orb { animation: float 20s ease-in-out infinite; }
.hero-orb--2 { animation-delay: -7s; animation-duration: 25s; }
.hero-orb--3 { animation-delay: -13s; animation-duration: 18s; }

.hero h1 em {
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

/* initial hero load animation */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-label { animation: heroFadeUp 0.8s var(--ease-out) 0.1s both; }
.hero h1 { animation: heroFadeUp 0.8s var(--ease-out) 0.2s both; }
.hero p { animation: heroFadeUp 0.8s var(--ease-out) 0.35s both; }
.hero-cta { animation: heroFadeUp 0.8s var(--ease-out) 0.5s both; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px 24px;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(11,17,32,0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    gap: 16px;
  }
  .nav-toggle { display: block; }
  .hero { padding: 100px 24px 60px; min-height: auto; }
  .hero h1 { font-size: 2rem; }
  .vision-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 220px; }
  .project-info { padding: 32px 24px; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-orb { animation: none; }
}
