/* ==========================================================================
   Andromeda A1 (أندروميدا A1) — Official Portal & Legal Pages Design System
   Palette: Midnight Sapphire, Brushed Brandenburg Gold, Oro Ice-Cyan, Warm Ivory
   ========================================================================== */

:root {
  --bg-void: hsl(221, 58%, 5%);
  --bg-deep: hsl(220, 52%, 8%);
  --bg-surface: hsl(219, 44%, 11%);
  --bg-elevated: hsl(218, 39%, 15%);
  --bg-input: hsl(220, 48%, 7%);

  --gold-400: hsl(42, 78%, 68%);
  --gold-500: hsl(40, 72%, 58%);
  --gold-600: hsl(38, 66%, 46%);
  --gold-tint: hsla(42, 78%, 68%, 0.11);

  --cyan-400: hsl(191, 88%, 64%);
  --cyan-tint: hsla(191, 88%, 64%, 0.1);

  --cobalt-500: hsl(213, 72%, 48%);
  --danger-500: hsl(356, 74%, 56%);
  --danger-tint: hsla(356, 74%, 56%, 0.12);
  --success-500: hsl(154, 64%, 48%);
  --success-tint: hsla(154, 64%, 48%, 0.12);

  --text-primary: hsl(42, 30%, 95%);
  --text-secondary: hsl(218, 22%, 76%);
  --text-muted: hsl(218, 16%, 56%);

  --border-subtle: hsla(216, 30%, 75%, 0.1);
  --border-strong: hsla(216, 30%, 82%, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-soft: 0 18px 48px rgba(2, 6, 18, 0.55);
  --shadow-card: 0 12px 32px rgba(2, 6, 18, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);

  --font-ar: "IBM Plex Sans Arabic", "Readex Pro", system-ui, -apple-system, sans-serif;
  --font-latin: "Space Grotesk", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container-max: 1180px;
  --prose-max: 860px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ar);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-primary);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, hsla(214, 68%, 24%, 0.42), transparent 68%),
    radial-gradient(ellipse 55% 40% at 85% 18%, hsla(41, 70%, 48%, 0.08), transparent 65%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

[lang="de"],
[lang="en"],
.latin {
  font-family: var(--font-latin);
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

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

a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--prose-max);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.25rem);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(221, 58%, 5%, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 74px;
  flex-wrap: wrap;
  padding-block: 0.6rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-primary);
}

.brand-link:hover {
  color: var(--text-primary);
  opacity: 0.92;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-primary);
}

.brand-sub {
  font-family: var(--font-latin);
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.65rem);
  flex-wrap: wrap;
}

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

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: hsl(222, 65%, 7%);
  box-shadow: 0 8px 24px hsla(40, 72%, 52%, 0.24);
}

.btn-primary:hover {
  color: hsl(222, 65%, 6%);
  background: linear-gradient(180deg, hsl(42, 84%, 73%) 0%, var(--gold-400) 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: hsla(218, 38%, 16%, 0.75);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: hsla(218, 38%, 21%, 0.9);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-danger {
  background: hsl(356, 70%, 48%);
  color: #fff;
  border-color: hsla(356, 80%, 70%, 0.28);
}

.btn-danger:hover {
  background: hsl(356, 74%, 54%);
  color: #fff;
}

.btn-sm {
  padding: 0.52rem 1rem;
  font-size: 0.86rem;
}

/* Hero Section */
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
}

.eyebrow-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  margin-bottom: 0.9rem;
  display: block;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.15rem, 4.3vw, 3.45rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.hero-de-tagline {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-latin);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  font-weight: 500;
  color: var(--gold-400);
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--text-secondary);
  margin: 0 0 1.85rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-val {
  display: block;
  font-family: var(--font-latin);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.hero-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.hero-stage img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-stage-caption {
  padding: 1.1rem 1.35rem;
  background: linear-gradient(180deg, hsla(220, 48%, 9%, 0.95), hsla(221, 56%, 6%, 0.98));
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.oro-dialogue {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.oro-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 12px var(--cyan-400);
  flex-shrink: 0;
}

.phrase-de {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.phrase-ar {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.phrase-next-btn {
  background: hsla(218, 36%, 18%, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--gold-400);
  border-radius: 8px;
  padding: 0.42rem 0.8rem;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.phrase-next-btn:hover {
  background: hsla(218, 36%, 24%, 1);
}

/* Sections */
.section {
  padding-block: clamp(3.2rem, 6.5vw, 5.2rem);
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header h2 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

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

/* Feature Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.feature-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.32;
}

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

.feature-meta-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.feature-meta-list li {
  font-size: 0.82rem;
  padding: 0.28rem 0.68rem;
  border-radius: 6px;
  background: hsla(219, 38%, 17%, 0.7);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Cinema Highlight Band */
.cinema-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: linear-gradient(145deg, hsl(220, 46%, 11%) 0%, hsl(222, 56%, 7%) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-soft);
}

.timecode-display {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-400);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.spec-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.spec-dl div {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: hsla(221, 55%, 6%, 0.65);
  border: 1px solid var(--border-subtle);
}

.spec-dl dt {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spec-dl dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-primary);
}

/* Pricing Passes */
.passes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.pass-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.15rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.pass-card.featured {
  background: linear-gradient(180deg, hsl(219, 44%, 14%) 0%, hsl(220, 50%, 9%) 100%);
  border-color: hsla(42, 78%, 68%, 0.42);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 hsla(42, 78%, 68%, 0.25);
}

.pass-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.pass-name {
  font-family: var(--font-latin);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.pass-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  background: var(--gold-tint);
  color: var(--gold-400);
}

.pass-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0.85rem 0 0.35rem;
}

.pass-price {
  font-family: var(--font-latin);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.pass-duration {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pass-note {
  font-size: 0.83rem;
  color: var(--gold-400);
  margin: 0 0 1.2rem;
}

.pass-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pass-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.pass-check {
  color: var(--gold-400);
  font-weight: 700;
  flex-shrink: 0;
}

.free-lesson-banner {
  margin-top: 1.6rem;
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-md);
  background: hsla(219, 42%, 12%, 0.8);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Legal & Account Deletion Pages */
.legal-hero {
  padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.22;
}

.lang-switch-bar {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-top: 1rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--gold-400);
  color: hsl(222, 65%, 7%);
}

.legal-body {
  padding-block: 2.4rem 4.2rem;
}

.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.legal-card h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.32rem;
  color: var(--gold-400);
}

.legal-card h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
  color: var(--text-primary);
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.97rem;
}

.legal-card ul {
  padding-inline-start: 1.3rem;
  margin-block: 0.6rem;
}

.legal-card li + li {
  margin-top: 0.4rem;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.summary-table th,
.summary-table td {
  text-align: start;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-table th {
  color: var(--text-primary);
  font-weight: 600;
  background: hsla(220, 48%, 8%, 0.6);
}

.summary-table td {
  color: var(--text-secondary);
}

/* Forms & Interactive Deletion Controls */
.deletion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.42rem;
}

.form-control {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--gold-400);
  outline: none;
}

textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.22rem;
  accent-color: var(--gold-400);
  flex-shrink: 0;
}

.status-box {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-top: 1rem;
  display: none;
}

.status-box.visible {
  display: block;
}

.status-box.success {
  background: var(--success-tint);
  border: 1px solid hsla(154, 64%, 48%, 0.4);
  color: hsl(154, 72%, 78%);
}

.status-box.error {
  background: var(--danger-tint);
  border: 1px solid hsla(356, 74%, 56%, 0.45);
  color: hsl(356, 85%, 82%);
}

.status-box.info {
  background: var(--cyan-tint);
  border: 1px solid hsla(191, 88%, 64%, 0.35);
  color: hsl(191, 85%, 82%);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: hsl(222, 62%, 4%);
  padding-block: 2.75rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  font-size: 0.9rem;
}

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

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

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

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .cinema-showcase,
  .passes-grid,
  .deletion-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pillars-grid,
  .spec-dl,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
