/* ==========================================================================
   NestHold Design System — Apple Minimalist
   Clean, Calm, Light-First Aesthetic Matching the iOS Application
   ========================================================================== */

:root {
  /* Canvas & Surface Colors */
  --bg-canvas: #FBFBFE;
  --bg-sub: #F2F2F7;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;

  /* Text & Labels (HIG Grayscale) */
  --text-primary: #0A0A0C;
  --text-secondary: rgba(60, 60, 67, 0.72);
  --text-muted: rgba(60, 60, 67, 0.44);

  /* Apple System Accents */
  --accent-blue: #007AFF;
  --accent-blue-hover: #0063D8;
  --accent-blue-tint: rgba(0, 122, 255, 0.08);

  --accent-green: #34C759;
  --accent-green-tint: rgba(52, 199, 89, 0.10);

  --accent-orange: #FF9500;
  --accent-orange-tint: rgba(255, 149, 0, 0.10);

  --accent-purple: #AF52DE;
  --accent-purple-tint: rgba(175, 82, 222, 0.10);

  /* Lines, Borders & Dividers */
  --border-subtle: rgba(60, 60, 67, 0.12);
  --border-light: rgba(60, 60, 67, 0.06);
  --border-focus: rgba(0, 122, 255, 0.4);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radii */
  --radius-card: 20px;
  --radius-inner: 14px;
  --radius-pill: 9999px;

  /* Shadows (Soft & Diffused) */
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 12px 32px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-mockup: 0 30px 60px -15px rgba(0, 0, 0, 0.12), 0 10px 24px -5px rgba(0, 0, 0, 0.06);

  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

/* Typography Elements */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover {
  color: var(--accent-blue-hover);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Minimal Sticky Header */
.header-nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(251, 251, 254, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Button & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: rgba(60, 60, 67, 0.25);
  background-color: #FAFAFD;
  transform: translateY(-1px);
}

/* Minimal Pill Tag */
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  background: var(--bg-sub);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.pill-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 14px;
  transition: all var(--transition-smooth);
}

.app-store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: #FFFFFF;
}

.app-store-button svg {
  width: 20px;
  height: 25px;
  fill: currentColor;
  flex-shrink: 0;
}

.button-text {
  text-align: left;
  line-height: 1.2;
}

.button-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.button-title {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ==========================================================================
   2-Column Split Hero Layout (Option 1)
   ========================================================================== */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  max-width: 1060px;
  margin: 0 auto;
}

.hero-split-text {
  padding-right: 20px;
}

.hero-split-text .hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin-bottom: 18px;
}

.hero-split-text .hero-subtitle {
  margin: 0 0 30px;
  font-size: 1.1rem;
}

.hero-split-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.micro-perks {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.micro-perks span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.micro-perks span strong {
  color: var(--accent-green);
}

/* Compact iPhone Frame for Split Layout */
.hero-split-phone {
  display: flex;
  justify-content: center;
}

.hero-showcase {
  max-width: 300px;
  margin: 0 auto;
  position: relative;
}

.device-chassis {
  position: relative;
  background: linear-gradient(145deg, #48494F 0%, #1E1F23 45%, #2F3035 100%);
  padding: 10px;
  border-radius: 50px;
  box-shadow: 
    0 28px 70px -15px rgba(0, 0, 0, 0.20),
    0 10px 24px -5px rgba(0, 0, 0, 0.10),
    inset 0 0 2px 1.5px rgba(255, 255, 255, 0.28);
  transition: transform var(--transition-smooth);
}

.device-chassis:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 34px 85px -15px rgba(0, 0, 0, 0.26),
    0 14px 30px -5px rgba(0, 0, 0, 0.14);
}

.device-screen-wrap {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: #F2F2F7;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

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

/* Responsive adjustment for split */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-split-text {
    padding-right: 0;
  }

  .hero-split-actions {
    justify-content: center;
  }

  .micro-perks {
    justify-content: center;
  }
}

/* Features Section */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(60, 60, 67, 0.22);
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.4rem;
}

.icon-blue { background: var(--accent-blue-tint); color: var(--accent-blue); }
.icon-green { background: var(--accent-green-tint); color: var(--accent-green); }
.icon-orange { background: var(--accent-orange-tint); color: var(--accent-orange); }

.card h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card p {
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Minimal FAQ Section */
.faq-wrap {
  max-width: 740px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

details.faq-item {
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-smooth);
}

details.faq-item:last-child {
  border-bottom: none;
}

details.faq-item[open] {
  background-color: #FAFAFD;
}

summary.faq-question {
  padding: 22px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  color: var(--text-primary);
}

summary.faq-question::-webkit-details-marker {
  display: none;
}

summary.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition-smooth);
}

details[open] summary.faq-question::after {
  transform: rotate(45deg);
  color: var(--accent-blue);
}

.faq-answer {
  padding: 0 28px 22px 28px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Call to Action Banner */
.cta-banner {
  text-align: center;
  padding: 80px 0;
}

.cta-banner h2 {
  margin-bottom: 14px;
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto 30px;
}

/* Legal Documents Layout (Privacy, Terms, Support) */
.legal-page {
  padding: 60px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 10px;
}

.legal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}

.legal-box section {
  margin-bottom: 32px;
}

.legal-box section:last-child {
  margin-bottom: 0;
}

.legal-box h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-box h3 {
  font-size: 1.05rem;
  margin: 18px 0 8px;
}

.legal-box p, .legal-box li {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-box ul, .legal-box ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-highlight {
  background: var(--bg-sub);
  border-left: 4px solid var(--accent-blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius-inner) var(--radius-inner) 0;
  margin: 24px 0;
}

.legal-highlight p {
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Support Help Center Styles — Apple Inspired */
.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.support-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.support-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 122, 255, 0.28);
}

.support-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  background: var(--bg-sub);
}

.support-item-icon.blue {
  background: rgba(0, 122, 255, 0.12);
  color: var(--accent-blue);
}

.support-item-icon.purple {
  background: rgba(175, 82, 222, 0.12);
  color: var(--accent-purple);
}

.support-item-icon.green {
  background: rgba(52, 199, 89, 0.12);
  color: var(--accent-green);
}

.support-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.support-item p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.support-item .btn {
  align-self: flex-start;
  font-size: 0.88rem;
  padding: 10px 18px;
}

/* Support Help Guide Cards */
.support-guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 96px;
  transition: border-color var(--transition-smooth);
}

.support-guide-card:hover {
  border-color: rgba(60, 60, 67, 0.2);
}

.support-guide-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-sub);
  color: var(--text-secondary);
}

.guide-pill.blue {
  background: rgba(0, 122, 255, 0.10);
  color: var(--accent-blue);
}

.guide-pill.green {
  background: rgba(52, 199, 89, 0.10);
  color: var(--accent-green);
}

.guide-pill.purple {
  background: rgba(175, 82, 222, 0.10);
  color: var(--accent-purple);
}

.guide-pill.orange {
  background: rgba(255, 149, 0, 0.10);
  color: var(--accent-orange);
}

.step-list {
  list-style: none;
  counter-reset: support-step;
  margin: 18px 0;
  padding: 0;
}

.step-list li {
  position: relative;
  counter-increment: support-step;
  padding-left: 38px;
  margin-bottom: 14px;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-list li strong {
  color: var(--text-primary);
}

.step-list li::before {
  content: counter(support-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-note {
  background: var(--bg-sub);
  border-left: 3px solid var(--accent-blue);
  padding: 14px 18px;
  border-radius: 0 var(--radius-inner) var(--radius-inner) 0;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.guide-note strong {
  color: var(--text-primary);
}

.support-contact-banner {
  background: linear-gradient(135deg, #0A1128 0%, #101F42 100%);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  text-align: center;
  color: #FFFFFF;
  margin-top: 40px;
}

.support-contact-banner h3 {
  font-size: 1.6rem;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.support-contact-banner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin: 0 auto 24px;
  font-size: 1rem;
}

.support-contact-banner .btn-primary {
  background: #FFFFFF;
  color: #0A1128;
  font-weight: 600;
  padding: 12px 28px;
  font-size: 0.98rem;
}

.support-contact-banner .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Clean Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 48px 0;
  background: var(--bg-canvas);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

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

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 860px) {
  .features-grid,
  .support-cards {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-box {
    padding: 28px 20px;
  }
}
