/* ==========================================================================
   Notcha Showcase Landing Page — Apple Design System Stylesheet
   ========================================================================== */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #fbfbfd;
  --card-bg: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent-blue: #0071e3;
  --accent-blue-hover: #0077ed;
  --accent-blue-active: #0062c4;
  --border-light: rgba(0, 0, 0, 0.08);
  --border-card: #e5e5ea;
  --dark-bg: #000000;
  --dark-card: #0a0a0c;
  --dark-border: rgba(255, 255, 255, 0.12);
  --dark-text: #f5f5f7;
  --dark-subtext: #a1a1a6;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 980px;
  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 24px 60px rgba(0, 0, 0, 0.15);
  --container-max: 1140px;
}

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

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

body {
  overflow-x: hidden;
  line-height: 1.5;
  background: var(--bg-primary);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

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

/* ==========================================================================
   Navigation Bar (Apple Frosted Glass)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  height: 52px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.nav-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--text-primary);
  opacity: 0.8;
  font-weight: 400;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-pill);
  padding: 2px;
  border: 1px solid var(--border-light);
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-gh-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-primary);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.nav-gh-link:hover {
  opacity: 1;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: var(--accent-blue-active);
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.06);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
}

.btn-lg {
  font-size: 15px;
  padding: 10px 24px;
}

.btn-xl {
  font-size: 16px;
  padding: 14px 28px;
  font-weight: 600;
}

.link-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-blue);
}

.link-learn-more .arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.link-learn-more:hover .arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 24px 90px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

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

.hero-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-app-icon:hover {
  transform: scale(1.05);
}

.hero-badge {
  font-size: 13px;
  font-weight: 600;
  color: #e35a00;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(48px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero-description {
  font-size: 18px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 28px;
  letter-spacing: -0.01em;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-requirements {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 54px;
}

.footnote-ref {
  font-size: 10px;
  vertical-align: super;
  color: inherit;
  margin-left: 1px;
}

/* ==========================================================================
   MacBook Mockup Frame (Apple hardware silhouette)
   ========================================================================== */
.hero-video-wrapper {
  max-width: 940px;
  margin: 0 auto;
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #0c0c0e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}
.hero-video-caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.tool-mockup a { display: block; width: 100%; }
.tool-img { object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Bento Section (2x2 Grid)
   ========================================================================== */
.section {
  padding: 90px 24px;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.bento-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
}

/* Card 1: Dark AI Card */
.bento-card-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
  border: 1px solid var(--dark-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.bento-card-dark .bento-desc {
  color: var(--dark-subtext);
}

/* Cards 2, 3, 4: Light Cards */
.bento-card-light {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
}

.bento-card-light .bento-desc {
  color: var(--text-secondary);
}

.bento-header {
  padding: 44px 44px 20px;
  text-align: center;
}

.bento-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pill-ai {
  background: linear-gradient(90deg, #ff416c, #8a2be2, #007aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.bento-card-light .bento-pill {
  color: var(--text-primary);
}

.bento-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.bento-desc {
  font-size: 16px;
  line-height: 1.45;
  max-width: 440px;
  margin: 0 auto 24px;
}

.bento-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.bento-mockup {
  padding: 0 30px 30px;
  position: relative;
}

.bento-notch-bar {
  background: linear-gradient(135deg, #dfd0be 0%, #caa88c 100%);
  border-radius: 18px;
  padding: 16px 14px 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  position: relative;
}

.mini-hardware-notch {
  width: 90px;
  height: 12px;
  background: #000;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  margin: -16px auto 10px;
}

.bento-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: #000;
}

/* ==========================================================================
   Section Headlines & Carousels
   ========================================================================== */
.section-heading-center {
  text-align: center;
  margin-bottom: 48px;
}

.section-headline {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.headline-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.headline-link .arrow {
  font-size: 20px;
  transition: transform 0.2s;
}

.headline-link:hover .arrow {
  transform: translateX(3px);
}

.carousel-container {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 4px 30px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Reason Cards (Image 3) */
.reason-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 310px;
  max-width: 360px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-3px);
}

.reason-card-body {
  padding: 34px 28px 20px;
  text-align: center;
}

.reason-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.reason-desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.reason-visual {
  background: linear-gradient(135deg, #dfd0be 0%, #caa88c 100%);
  padding: 16px;
  border-top: 1px solid var(--border-light);
}

.reason-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Tool Cards (Image 4) */
.tool-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 320px;
  max-width: 360px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
}

.tool-mockup {
  background: #f7f7f9;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}

.tool-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  background: #000;
}

.tool-info {
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: space-between;
}

.tool-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 24px;
}

.tool-badge {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Carousel Controls (Apple Circles) */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-subtle);
}

.carousel-btn:hover {
  border-color: #86868b;
  transform: scale(1.05);
}

.carousel-btn:active {
  transform: scale(0.96);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Install & Download Section
   ========================================================================== */
.install-section {
  background: var(--bg-secondary);
}

.install-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.install-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.install-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.install-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.45;
}

.download-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.btn-icon {
  flex-shrink: 0;
}

.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: left;
}

.step-item {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.step-content code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, Menlo, Monaco, monospace;
}

/* Specs Table */
.specs-table-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 14px 20px;
  font-size: 14px;
}

.specs-table td:first-child {
  color: var(--text-secondary);
  font-weight: 500;
  width: 35%;
  background: var(--bg-tertiary);
}

.specs-table td:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  padding: 48px 24px 36px;
  border-top: 1px solid var(--border-light);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-notes {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.footer-notes p {
  margin-bottom: 8px;
}

.footer-divider {
  height: 1px;
  background: var(--border-light);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reason-card, .tool-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 280px;
  }

  .install-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .install-card {
    padding: 40px 24px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero-section {
    padding: 40px 16px 60px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }




  .reason-card, .tool-card {
    flex: 0 0 85%;
    min-width: 260px;
  }

  .bento-header {
    padding: 32px 20px 16px;
  }

  .bento-mockup {
    padding: 0 16px 20px;
  }

  .download-box {
    flex-direction: column;
  }

  .download-box .btn {
    width: 100%;
  }

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

@media (max-width: 480px) {
  .nav-brand { flex-shrink: 0; }
  .nav-title { font-size: 16px; }
  .nav-actions { gap: 8px; }
  .nav-gh-link .gh-text { display: none; }
}

.project-credit { margin-top: 8px; font-size: 13px; color: var(--text-secondary); }
