/* ─────────────────────────────────────────────────────────
   singscale.com — Landing Page
   Design Direction: "Concert Hall" (Moderated / Premium Dark)
   ───────────────────────────────────────────────────────── */

/* ── Self-hosted Fonts ──────────────────────────────────── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces/fraunces.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk/space-grotesk.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter/inter-500.woff2') format('woff2');
}

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:           #0c0d10;
  --bg-raised:    #101116;
  --bg-elev:      #14151c;

  /* Surfaces (glass-like panels) */
  --surface:      rgba(255, 255, 255, 0.035);
  --surface-2:    rgba(255, 255, 255, 0.06);
  --line:         rgba(255, 255, 255, 0.07);
  --line-amber:   rgba(200, 155, 90, 0.12);

  /* Amber accent — the only colour */
  --amber:        #c89b5a;
  --amber-soft:   #d8b079;
  --amber-deep:   #8a6432;
  --amber-tint:   rgba(200, 155, 90, 0.10);
  --amber-tint-2: rgba(200, 155, 90, 0.22);

  /* Text */
  --ink:          #ececee;
  --ink-2:        #9a9ba1;
  --ink-3:        #5b5c63;

  /* Typography */
  --f-display: 'Fraunces', Georgia, serif;
  --f-ui:      'Space Grotesk', -apple-system, sans-serif;

  /* Layout */
  --max-w:    1100px;
  --gutter:   clamp(1.25rem, 4vw, 2.5rem);
  --radius:   10px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--f-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100dvh;
}

img, svg { display: block; }
a { color: inherit; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--f-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--amber);
  color: #0c0d10;
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
}
.btn-primary:hover  { background: var(--amber-soft); }
.btn-primary:active { transform: scale(0.98); }

.btn-large {
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
  border-radius: 12px;
}

/* ── Site Header / Nav ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Language toggle */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-sep {
  color: var(--ink-3);
  font-size: 0.8rem;
  user-select: none;
}

.lang-btn {
  font-family: var(--f-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.1rem;
  transition: color 0.15s;
}
.lang-btn:hover         { color: var(--ink-2); }
.lang-btn--active       { color: var(--amber); }

.nav-cta {
  flex-shrink: 0;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  border-bottom: 1px solid var(--line-amber);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
}

/* Copy column */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-eyebrow {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero-headline {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  font-weight: 400; /* Fraunces at 400 is already characterful */
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* Device mockup column */
.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame {
  width: 280px;
  border-radius: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--line-amber);
  box-shadow:
    0 0 0 1px rgba(200,155,90,0.06),
    0 32px 64px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 2px;
  /* CSS perspective tilt — concert-hall angle, restrained */
  transform:
    perspective(900px)
    rotateY(-12deg)
    rotateX(4deg)
    translateY(-8px);
  transition: transform 0.4s ease;
}

.device-frame:hover {
  transform:
    perspective(900px)
    rotateY(-6deg)
    rotateX(2deg)
    translateY(-12px);
}

.device-screen {
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 9 / 16;
  max-height: 500px;
}

.device-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Schematic app preview (replace with <img> screenshot later) */
.app-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg);
}

.ap-topbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.ap-back, .ap-settings {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface-2, rgba(255,255,255,0.06));
}
.ap-title { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ap-eyebrow { width: 40px; height: 7px; border-radius: 4px; background: var(--line); }
.ap-name    { width: 80px; height: 10px; border-radius: 4px; background: rgba(255,255,255,0.08); }

.ap-key-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface, rgba(255,255,255,0.035));
  border: 1px solid var(--line-amber);
  border-radius: 14px;
  padding: 0.9rem 1.25rem;
  width: 100%;
  justify-content: space-between;
}
.ap-dir-indicator { flex-shrink: 0; }
.ap-keynote {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--amber-soft, #d8b079);
  letter-spacing: -0.02em;
}

.ap-pattern {
  display: flex;
  gap: 0.4rem;
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ap-pattern span:last-child { color: var(--amber); }

.ap-play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--amber-tint, rgba(200,155,90,0.10));
  border: 1px solid rgba(200,155,90,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-bpm-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.ap-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ap-value {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--ink-2);
}

/* ── Features ───────────────────────────────────────────── */
.features {
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.features-headline {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-raised);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { background: var(--bg-elev); }

.feature-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.feature-card:nth-child(1)::after {
  width: 80px;
  height: 80px;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90'><polygon points='0,0 90,45 0,90' fill='%23c89b5a'/></svg>");
}

.feature-card:nth-child(2)::after {
  width: 100px;
  height: 100px;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90'><line x1='18' y1='72' x2='45' y2='45' stroke='%23c89b5a' stroke-width='5' stroke-linecap='round' opacity='0.4'/><line x1='45' y1='45' x2='72' y2='18' stroke='%23c89b5a' stroke-width='5' stroke-linecap='round' opacity='0.4'/><circle cx='18' cy='72' r='9' fill='%23c89b5a' opacity='0.38'/><circle cx='45' cy='45' r='9' fill='%23c89b5a' opacity='0.68'/><circle cx='72' cy='18' r='11' fill='%23c89b5a'/></svg>");
}

.feature-card:nth-child(3)::after {
  width: 100px;
  height: 100px;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90'><path d='M10,90 A80,80 0 0 0 90,10' stroke='%23c89b5a' stroke-width='4' fill='none' stroke-linecap='round'/><path d='M35,90 A55,55 0 0 0 90,35' stroke='%23c89b5a' stroke-width='4' fill='none' stroke-linecap='round'/><path d='M60,90 A30,30 0 0 0 90,60' stroke='%23c89b5a' stroke-width='4' fill='none' stroke-linecap='round'/></svg>");
}

.feature-card:nth-child(4)::after {
  width: 100px;
  height: 100px;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><circle cx='8' cy='8' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='24' cy='8' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='40' cy='8' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='56' cy='8' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='72' cy='8' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='8' cy='24' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='24' cy='24' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='40' cy='24' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='56' cy='24' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='72' cy='24' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='8' cy='40' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='24' cy='40' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='40' cy='40' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='56' cy='40' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='72' cy='40' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='8' cy='56' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='24' cy='56' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='40' cy='56' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='56' cy='56' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='72' cy='56' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='8' cy='72' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='24' cy='72' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='40' cy='72' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='56' cy='72' r='2' fill='%23c89b5a' opacity='0.15'/><circle cx='72' cy='72' r='2' fill='%23c89b5a' opacity='0.15'/><polyline points='8,72 24,40 40,24 56,40 72,56' stroke='%23c89b5a' stroke-width='2.5' fill='none' opacity='0.4' stroke-linecap='round' stroke-linejoin='round'/><circle cx='8' cy='72' r='5' fill='%23c89b5a' opacity='0.4'/><circle cx='24' cy='40' r='5' fill='%23c89b5a' opacity='0.6'/><circle cx='40' cy='24' r='6' fill='%23c89b5a' opacity='0.85'/><circle cx='56' cy='40' r='5' fill='%23c89b5a' opacity='0.55'/><circle cx='72' cy='56' r='5' fill='%23c89b5a' opacity='0.45'/></svg>");
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-tint);
  border-radius: 10px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ── How it works ───────────────────────────────────────── */
.how-it-works {
  background: var(--bg-raised);
  border-top: 1px solid var(--line-amber);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter);
}

.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
}

.how-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--amber);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
}

.how-step p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.65;
  padding-top: 0.4rem;
}

/* ── About ───────────────────────────────────────────────── */
.about-section {
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  border-bottom: 1px solid var(--line);
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.callout-headline {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.callout-body {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.75;
}

.about-story p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-story p:last-child {
  margin-bottom: 0;
  color: var(--ink-3);
}

/* ── Site Footer ────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-3);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--amber); }

/* ── Responsive ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub     { max-width: 52ch; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-note    { text-align: center; }
  .hero-device  { order: -1; }
  .device-frame {
    width: 220px;
    transform:
      perspective(700px)
      rotateX(6deg)
      translateY(-6px);
  }
  .device-frame:hover {
    transform:
      perspective(700px)
      rotateX(3deg)
      translateY(-10px);
  }

}

/* Mobile */
@media (max-width: 600px) {
  .nav-lang { display: none; }

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

  .features-headline {
    font-size: 1.5rem;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ── Subpages (Imprint / Privacy) ───────────────────────── */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
  font-family: 'Inter', var(--f-ui);
  line-height: 1.75;
}

.page-content h1 {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
  color: var(--ink);
}

.page-content h2 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.page-content h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-content p, .page-content li {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 0.75rem;
}

.page-content ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-content a {
  color: var(--amber);
  text-decoration: none;
}
.page-content a:hover { text-decoration: underline; }

.page-content address {
  font-style: normal;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── Cookie Banner ──────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--bg-elev);
  border: 1px solid var(--line-amber);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 620px;
  width: calc(100% - 2.5rem);
  flex-wrap: wrap;
}

.cookie-msg {
  font-size: 0.85rem;
  color: var(--ink-2);
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--f-ui);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.cookie-accept {
  background: var(--amber);
  color: var(--bg);
}
.cookie-accept:hover { background: var(--amber-soft); }

.cookie-decline {
  background: var(--surface-2, rgba(255,255,255,0.06));
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.cookie-decline:hover { color: var(--ink); }
