/* ==========================================================================
   I Need Buddy — Official Website Stylesheet
   Crafted with Human Typography Standards (Linear & Stripe Benchmark)
   Tight Tracking, Spatial Rhythm, High Contrast & Zero AI Clichés
   ========================================================================== */

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

:root {
  --primary-accent: #f59e0b;
  --primary-chip-bg: #fefce8;
  --primary-chip-border: #fef08a;
  --primary-chip-text: #713f12;
  
  --dark-bg: #09090b;
  --dark-surface: #121216;
  --dark-border: #27272a;
  
  --text-headline: #09090b;
  --text-body: #52525b;
  --text-muted: #71717a;
  --text-light: #a1a1aa;
  
  --surface-page: #fafafa;
  --surface-card: #ffffff;
  --surface-subtle: #f4f4f5;
  --border-subtle: #e4e4e7;
  --border-hover: #d4d4d8;

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

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 16px -2px rgba(9, 9, 11, 0.05), 0 2px 6px -2px rgba(9, 9, 11, 0.03);
  --shadow-float: 0 20px 40px -8px rgba(9, 9, 11, 0.12);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--surface-page);
  color: var(--text-headline);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  overflow-x: hidden;
  background-color: var(--surface-page);
}

/* Editorial Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-headline);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

p {
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.65;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.15s var(--ease-spring);
}

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

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text-headline);
}

.brand-badge {
  background: #ffffff;
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
}

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

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

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: -0.01em;
}

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

.btn-cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-headline);
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  letter-spacing: -0.01em;
}

.btn-cta-nav:hover {
  background: #27272a;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 72px 0 64px;
  position: relative;
  background: radial-gradient(circle at 50% -20%, rgba(245, 158, 11, 0.08) 0%, transparent 65%);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-chip-bg);
  border: 1px solid var(--primary-chip-border);
  color: var(--primary-chip-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.hero-chip-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #eab308;
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.25);
}

.hero-heading {
  font-size: clamp(2.4rem, 4.8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text-headline);
  margin-bottom: 20px;
}

.hero-heading .headline-accent {
  color: #b45309;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-body);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text-headline);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: 1px solid #000;
  box-shadow: var(--shadow-card);
}

.btn-playstore:hover {
  background: #18181b;
  transform: translateY(-1px);
}

.btn-playstore:active {
  transform: scale(0.98);
}

.btn-playstore svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.playstore-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  display: block;
}

.playstore-title {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: var(--text-headline);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.proof-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-body);
}

.proof-metric svg {
  color: #16a34a;
}

/* ==========================================================================
   ULTRA-SLEEK SMARTPHONE HARDWARE & REALISTIC IN-APP UI
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.device-wrapper {
  position: relative;
  display: inline-block;
}

/* Smartphone Hardware Outer Chassis */
.device-frame {
  width: 316px;
  background: #09090b;
  border: 11px solid #18181b;
  border-radius: 48px;
  box-shadow: 
    0 30px 60px -12px rgba(9, 9, 11, 0.22),
    0 18px 36px -18px rgba(9, 9, 11, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
  position: relative;
}

/* Dynamic Island */
.device-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.island-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #090d16;
  border: 1px solid #1e293b;
}

/* Realistic Status Bar */
.device-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #09090b;
  background-color: #fafafa;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Screen Interior */
.device-screen-inner {
  padding: 10px 14px 14px;
  background-color: #fafafa;
}

/* Top Location & Profile Header */
.screen-loc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.loc-badge-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.loc-pin-icon {
  width: 26px;
  height: 26px;
  background: #fef08a;
  color: #854d0e;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-text-col {
  display: flex;
  flex-direction: column;
}

.loc-heading {
  font-size: 0.76rem;
  font-weight: 800;
  color: #09090b;
  line-height: 1.1;
}

.loc-subtext {
  font-size: 0.64rem;
  color: #71717a;
  font-weight: 500;
}

.user-avatar-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f4f5;
  border: 1.5px solid #e4e4e7;
  overflow: hidden;
}

.user-avatar-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* In-App Search Bar */
.screen-search-box {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.search-placeholder {
  font-size: 0.74rem;
  color: #a1a1aa;
  font-weight: 500;
}

/* Screen Promo Banner */
.screen-promo-card {
  background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.promo-text-wrap {
  display: flex;
  flex-direction: column;
}

.promo-main {
  font-size: 0.78rem;
  font-weight: 800;
  color: #713f12;
  line-height: 1.15;
}

.promo-sub {
  font-size: 0.64rem;
  font-weight: 600;
  color: #854d0e;
}

.promo-chip-btn {
  background: #09090b;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

/* 2x2 Services Grid */
.screen-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.screen-card-unit {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.screen-card-unit img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 5px;
}

.screen-card-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #09090b;
  display: block;
}

.screen-card-rating {
  font-size: 0.62rem;
  font-weight: 700;
  color: #d97706;
}

/* Bottom App Navigation Bar */
.screen-bottom-tabs {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 7px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tab-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #a1a1aa;
}

.tab-cell.active {
  color: #09090b;
}

/* Floating Tactile Live Badge Outside the Phone */
.floating-live-chip {
  position: absolute;
  bottom: 30px;
  left: -32px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 14px 30px -4px rgba(9, 9, 11, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 25;
  animation: floatSubtle 3.5s ease-in-out infinite alternate;
}

@keyframes floatSubtle {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.live-chip-text {
  display: flex;
  flex-direction: column;
}

.live-chip-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #09090b;
  line-height: 1.1;
}

.live-chip-desc {
  font-size: 0.68rem;
  color: #71717a;
  font-weight: 500;
}

/* Sections Global */
.section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #b45309;
  background: #fef3c7;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-body);
  letter-spacing: -0.01em;
}

/* Bento Services Layout */
.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s var(--ease-spring);
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-span-8 {
  grid-column: span 8;
}

.bento-image-wrap {
  height: 210px;
  width: 100%;
  overflow: hidden;
  background: #f4f4f5;
}

.bento-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bento-card:hover .bento-image-wrap img {
  transform: scale(1.03);
}

.bento-body {
  padding: 22px 24px;
}

.bento-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #71717a;
  margin-bottom: 6px;
  display: block;
}

.bento-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.bento-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* How It Works Steps */
.steps-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
}

.step-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: #09090b;
  background: #fef08a;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step-details {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Legal Documents & Compliance */
.legal-section-wrap {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-tab-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.legal-tab-item {
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.15s ease;
}

.legal-tab-item:hover {
  color: var(--text-headline);
  border-color: var(--border-hover);
}

.legal-tab-item.active {
  background: var(--text-headline);
  color: #ffffff;
  border-color: var(--text-headline);
}

.legal-sheet {
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 880px;
  margin: 0 auto;
}

.legal-tab-pane {
  display: none;
}

.legal-tab-pane.active {
  display: block;
}

.legal-head-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.legal-timestamp {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-prose h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
}

.legal-prose p {
  margin-bottom: 14px;
  font-size: 0.94rem;
  line-height: 1.65;
}

.legal-prose ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-prose li {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 6px;
}

.legal-prose code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #0f172a;
}

/* Contact Cards */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-subtle);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

/* ==========================================================================
   FOOTER (High Visibility Logo & Modern Obsidian Contrast)
   ========================================================================== */
.site-footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 64px 0 32px;
  border-top: 1px solid var(--dark-border);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Distinctive high-contrast container so black logo & yellow icon shine */
.footer-logo-badge {
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.footer-logo-badge img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.footer-mission {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #a1a1aa;
  max-width: 360px;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  font-size: 0.9rem;
  color: #a1a1aa;
}

.footer-menu a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #71717a;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive Rules */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-description {
    margin: 0 auto 28px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-proof {
    justify-content: center;
  }
  .bento-span-7, .bento-span-5, .bento-span-4, .bento-span-8 {
    grid-column: span 12;
  }
  .steps-layout, .contact-layout, .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .nav-menu {
    display: none;
  }
}

@media (max-width: 600px) {
  .legal-sheet {
    padding: 24px 16px;
  }
  .container {
    padding: 0 16px;
  }
  .floating-live-chip {
    left: 8px;
    bottom: 12px;
  }
}
