/* Insightful Audio — Marketing site stylesheet */

:root {
  --bg: #ffffff;
  --surface: #f2f2f7;
  --surface-2: #e5e5ea;
  --text: #000000;
  --text-secondary: #6c6c70;
  --accent: #007aff;
  --accent-hover: #005ecb;
  --logo-red: #9a1b1b;
  --logo-red-light: #b92d2d;
  --radius: 22px;
  --radius-pill: 9999px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text);
  opacity: 0.8;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 28px rgba(0, 122, 255, 0.36);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-2);
  text-decoration: none;
  color: var(--text);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero-title span {
  color: var(--accent);
}

.hero-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 520px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.hero-phone {
  width: 280px;
  max-width: 100%;
  border-radius: 44px;
  box-shadow: var(--shadow), 0 0 0 10px rgba(0, 0, 0, 0.03);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.hero-phone:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Logo cube animation */
.cube-stage {
  width: 220px;
  height: 220px;
  perspective: 800px;
  margin: 0 auto;
}

.cube {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: spinCube 18s ease-in-out infinite;
}

@keyframes spinCube {
  0%, 100% { transform: rotateX(-18deg) rotateY(-24deg); }
  50% { transform: rotateX(-18deg) rotateY(156deg); }
}

.cube-face {
  position: absolute;
  width: 130px;
  height: 130px;
  left: 45px;
  top: 45px;
  background: linear-gradient(145deg, #ffffff, #ececef);
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  backface-visibility: visible;
}

.cube-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.cube-face.front  { transform: translateZ(65px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(65px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(65px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(65px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(65px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(65px); }

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

.section-alt {
  background: linear-gradient(to bottom, #fafbfc, #ffffff);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}

/* Pill tabs (matches app segmented control) */
.pills {
  display: inline-flex;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 48px;
}

.pill {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
}

.pill.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Screenshots */
.screenshots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: start;
}

.phone-frame {
  background: #000;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow);
  transform: translateY(var(--offset, 0));
  transition: transform 0.3s ease;
}

.phone-frame:hover {
  transform: translateY(calc(var(--offset, 0) - 8px)) scale(1.02);
}

.phone-frame img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

/* AI prompt card */
.prompt-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0 auto;
  max-width: 720px;
  box-shadow: var(--shadow-sm);
}

.prompt-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.prompt-text {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  padding: 18px;
  border-radius: 14px;
  margin: 0;
}

/* Download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 40px 0 56px;
}

.download-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.download-meta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 10px;
}

.download-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.download-card p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
  flex-grow: 1;
}

.download-card .btn {
  align-self: flex-start;
}

/* Code blocks */
pre {
  background: #1c1c1e;
  color: #f5f5f7;
  padding: 22px;
  border-radius: 18px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 18px 0 28px;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

pre code {
  background: transparent;
  padding: 0;
}

/* DAW logos row */
.daws {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.daw-chip {
  background: var(--surface);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
}

/* CTA */
.cta {
  text-align: center;
  padding: 90px 0;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}

.cta p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin: 0 0 28px;
}

/* Footer */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

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

/* Privacy page */
.legal-page {
  padding: 64px 0 96px;
}

.legal-page .container {
  max-width: 720px;
}

.legal-page h1 {
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.legal-date {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.legal-page p,
.legal-page ul {
  color: #333;
  line-height: 1.65;
  margin: 0 0 14px;
}

.legal-page ul {
  padding-left: 22px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual {
    order: -1;
  }

  .hero-phone {
    transform: rotate(0deg);
    width: 240px;
  }

  .screenshots {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }

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

  .section {
    padding: 64px 0;
  }

  .screenshots {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .phone-frame {
    border-radius: 26px;
    padding: 8px;
  }

  .phone-frame img {
    border-radius: 18px;
  }

  .cube-stage {
    width: 160px;
    height: 160px;
  }

  .cube-face {
    width: 90px;
    height: 90px;
    left: 35px;
    top: 35px;
  }

  .cube-face.front  { transform: translateZ(45px); }
  .cube-face.back   { transform: rotateY(180deg) translateZ(45px); }
  .cube-face.right  { transform: rotateY(90deg) translateZ(45px); }
  .cube-face.left   { transform: rotateY(-90deg) translateZ(45px); }
  .cube-face.top    { transform: rotateX(90deg) translateZ(45px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(45px); }
}
