/* ==========================================================================
   THE FIRST LABS — PURE WHITE & ELECTRIC BLUE DESIGN SYSTEM
   Clean, modern, editorial aesthetic for a high-end product studio
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Crisp White & Electric Blue Theme (Default) */
  --bg-base: #ffffff;
  --bg-surface-subtle: #f8fafc;
  --bg-surface-1: #ffffff;
  --bg-surface-2: #f1f5f9;
  --bg-surface-3: #e2e8f0;
  --bg-surface-blue-tint: #f0f6ff;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --text-main: #0a1128;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-inverse: #ffffff;

  /* Brand Palette */
  --brand-blue: #0066ff;
  --brand-blue-hover: #0052cc;
  --brand-blue-light: #eff6ff;
  --brand-blue-glow: rgba(0, 102, 255, 0.16);
  --brand-cyan: #0284c7;
  --brand-gradient: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
  --brand-gradient-soft: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);

  /* Borders & Shadows */
  --card-border: #e2e8f0;
  --card-border-hover: rgba(0, 102, 255, 0.4);
  --card-border-glow: rgba(0, 102, 255, 0.12);

  --badge-bg: rgba(0, 102, 255, 0.08);
  --badge-text: #0066ff;
  --badge-border: rgba(0, 102, 255, 0.2);

  --success: #059669;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 20px -2px rgba(10, 17, 40, 0.05), 0 2px 6px -1px rgba(10, 17, 40, 0.02);
  --shadow-float: 0 20px 45px -10px rgba(0, 102, 255, 0.1), 0 10px 20px -5px rgba(10, 17, 40, 0.04);

  --max-w: 1200px;
  --header-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE SETUP
   ========================================================================== */

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* Ambient Background Lighting */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb-top {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 550px;
  background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.08) 0%, rgba(0, 102, 255, 0) 70%);
  filter: blur(70px);
}

.ambient-orb-right {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(0, 163, 255, 0.05) 0%, transparent 70%);
  filter: blur(80px);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--card-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--card-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.45;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 1;
}

.section-wrap {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section-wrap {
    padding: 3.75rem 0;
  }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
  transition: all 0.3s var(--ease);
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.brand-blue {
  color: var(--brand-blue);
}

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

.nav-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
  padding: 0.25rem 0;
}

.nav-link-item:hover, .nav-link-item.active {
  color: var(--text-main);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: var(--bg-base);
  border-bottom: 1px solid var(--card-border);
  padding: 1.75rem;
  box-shadow: var(--shadow-float);
  z-index: 99;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer-list a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--brand-blue-glow);
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--brand-blue-glow);
}

.btn-secondary {
  background: var(--bg-surface-1);
  color: var(--text-main);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface-2);
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   HERO SECTION (WHITE & BLUE MINIMALIST)
   ========================================================================== */

.hero-wrap {
  padding: 5rem 0 4.5rem;
  text-align: center;
  position: relative;
}

.hero-headline {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 980px;
  margin: 1.5rem auto 1.5rem;
  color: var(--text-main);
}

.hero-subtext {
  font-size: 1.25rem;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Hero Showcase Frame */
.hero-stage {
  max-width: 960px;
  margin: 0 auto;
}

.hero-device-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-float);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
  transition: all 0.3s var(--ease);
}

.hero-device-card:hover {
  border-color: var(--card-border-hover);
}

.hero-stage-content {
  padding-right: 1rem;
}

.hero-stage-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-phone-shell {
  width: 100%;
  max-width: 280px;
  border-radius: 36px;
  background: #0f172a;
  padding: 8px;
  border: 2px solid #334155;
  box-shadow: 0 20px 40px rgba(10, 17, 40, 0.15), 0 0 30px var(--brand-blue-glow);
}

.hero-phone-screen {
  border-radius: 28px;
  overflow: hidden;
  display: block;
}

.hero-phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   RESEARCH & CAPABILITY CARDS
   ========================================================================== */

.section-tagline {
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  display: block;
}

.section-head {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-subhead {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 660px;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.research-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s var(--ease);
}

.research-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-float);
}

.research-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--badge-border);
}

.research-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.research-desc {
  font-size: 0.975rem;
  color: var(--text-body);
  line-height: 1.65;
}

.research-metric-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-blue);
}

/* ==========================================================================
   VISION PILLARS (WORK, LEARNING, LIFE)
   ========================================================================== */

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.vision-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}

.vision-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: block;
}

.vision-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.vision-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ==========================================================================
   INTERACTIVE RESUME TAILOR PREVIEW
   ========================================================================== */

.tailor-demo-box {
  background: var(--bg-surface-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.tailor-tab-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tailor-tab-btn {
  background: var(--bg-surface-1);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.tailor-tab-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.tailor-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-1);
  border: 1px solid var(--card-border);
  min-height: 90px;
  color: var(--text-main);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-box {
  background: var(--bg-surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-input, .form-textarea {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.2s var(--ease);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-glow);
  background: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 4rem 0 2.5rem;
  background: var(--bg-surface-subtle);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
}

.footer-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.footer-nav-links a:hover {
  color: var(--brand-blue);
}

.footer-legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
  .hero-headline {
    font-size: 2.85rem;
  }
  .hero-device-card {
    grid-template-columns: 1fr;
  }
  .research-grid, .vision-grid {
    grid-template-columns: 1fr;
  }
  .contact-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-cta-group .btn {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-subtext {
    font-size: 1.05rem;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
