/* Daily Prompt — Dark Automotive Cockpit Design System */
:root {
  --bg: #06080d;
  --bg-elevated: #0d121b;
  --bg-card: #111722;
  --bg-card-hover: #161e2d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f6fb;
  --text-secondary: #9aa7bc;
  --text-muted: #6c7a91;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-cyan: #22d3ee;
  --accent-emerald: #22c55e;
  --accent-glow: rgba(59, 130, 246, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max-width: 1160px;
  --shadow-card: 0 20px 50px -24px rgba(0, 0, 0, 0.75);
  --font-sans: "Pretendard Variable", "Pretendard", "Inter", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-display: "Space Grotesk", "Outfit", "Pretendard Variable", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 50% -120px, rgba(59, 130, 246, 0.14), transparent 70%),
    radial-gradient(800px 500px at 85% 18%, rgba(34, 211, 238, 0.07), transparent 65%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="ko"] body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 13, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-cyan));
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
}

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

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

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

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

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.lang-btn:hover:not(.is-active) {
  color: var(--text);
}

.mobile-menu-btn {
  display: none;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Badges & Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow-emerald {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #4ade80;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-blue {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
}

.pill-emerald {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  box-shadow: 0 10px 28px -10px rgba(59, 130, 246, 0.75);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 14px 32px -10px rgba(59, 130, 246, 0.9);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  padding: 72px 0 64px;
}

.hero-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-center .btn-group {
  justify-content: center;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.hero-app-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.85);
  object-fit: cover;
  flex-shrink: 0;
}

.app-icon-sm {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.hero h1 {
  margin: 18px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-gradient {
  background: linear-gradient(120deg, #ffffff 10%, #93c5fd 60%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.72;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

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

.section-tight {
  padding: 44px 0;
}

.section-border {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Visual Frames */
.device-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

.device-frame img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  display: block;
}

.frame-caption {
  margin: 12px 4px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Studio Hero Preview Stack */
.studio-showcase {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.showcase-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.showcase-tile img {
  width: 100%;
  flex: 1;
  object-fit: contain;
  background: #05070b;
  aspect-ratio: 16 / 10;
}

.showcase-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(10, 14, 22, 0.92);
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.showcase-label strong {
  color: var(--text);
}

.showcase-label span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* App Feature Cards on Main Page */
.apps-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 27, 40, 0.9), rgba(13, 18, 27, 0.95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}

.app-card:hover {
  border-color: rgba(96, 165, 250, 0.34);
}

.app-card-compact {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  padding: 28px 34px;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.app-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.app-card-tagline {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--accent-bright);
  font-weight: 600;
}

.app-card-desc {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.97rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  color: #d6dfec;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.7);
}

.app-card-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #05070b;
}

.app-card-media img {
  width: 100%;
  height: auto;
  display: block;
}

.matedrive-media {
  max-width: 220px;
  margin-left: auto;
  border-radius: 22px;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: var(--accent-bright);
  margin-bottom: 4px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

/* Interactive Switcher (Gauge Style / HUD Before-After) */
.switcher-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.switcher-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.switcher-btn.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
}

.switcher-btn:hover:not(.is-active) {
  color: var(--text);
}

.switcher-panel[hidden] {
  display: none;
}

/* Portrait Pair Showcase (Charging / Decryption) */
.portrait-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 620px;
}

.portrait-pair .device-frame {
  padding: 7px;
  border-radius: 24px;
}

.portrait-pair .device-frame img {
  border-radius: 18px;
}

/* Step Cards */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

/* Callout / Notice Box */
.callout {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.24);
  color: #dbeafe;
  font-size: 0.93rem;
}

.callout strong {
  color: #ffffff;
}

.callout-neutral {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-secondary);
}

/* Guide Link Strip */
.resource-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.resource-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.resource-card:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: var(--bg-card-hover);
}

.resource-card strong {
  display: block;
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 3px;
}

.resource-card span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-bright);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

.faq-body p {
  margin: 0 0 8px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

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

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-split,
  .app-card,
  .app-card-compact,
  .studio-showcase {
    grid-template-columns: 1fr;
  }

  .matedrive-media {
    margin-left: 0;
    max-width: 200px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 18px;
    background: rgba(9, 12, 19, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero {
    padding: 48px 0 44px;
  }

  .section {
    padding: 48px 0;
  }

  .app-card,
  .app-card-compact {
    padding: 22px;
    gap: 22px;
  }

  .grid-2,
  .grid-4,
  .resource-links {
    grid-template-columns: 1fr;
  }
}
