/* Dinora Studio landing page. Tokens mirror the Semantic (Dark mode), Dimensions and
   Typography collections of the "DINORA Studio" Figma file (dinora-studio/DESIGN.md);
   design frames: page "Studio landing", Section "Studio landing / Home". */

:root {
  color-scheme: dark;

  --bg-canvas: #141118;
  --bg-container: #1d1a22;
  --bg-elevated: #28252d;
  --border-subtle: #28252d;
  --border-default: #37333c;
  --border-strong: #4f4b54;
  --text-primary: #f8f6fa;
  --text-secondary: #cac5d0;
  --text-tertiary: #ada8b3;
  --text-on-solid: #ffffff;
  --brand-solid: #9134e8;
  --brand-subtle: #35035c;
  --brand-border: #a657fc;
  --brand-text: #ccabff;
  --accent-solid: #e71bb4;
  --focus-ring: #b782fc;
  --film-base: #09060c;
  --film-hole: #28252d;

  --gradient-brand: linear-gradient(90deg, #9134e8 0%, #e71bb4 100%);
  --gradient-backlight: linear-gradient(180deg, rgba(231, 27, 180, 0.05) 0%, rgba(145, 52, 232, 0.45) 100%);
  --glow-violet: rgba(145, 52, 232, 0.3);
  --glow-magenta: rgba(231, 27, 180, 0.14);
  --elevation-2: 0 12px 32px -8px rgba(9, 6, 12, 0.4);
  --glow-brand: 0 24px 64px -12px rgba(145, 52, 232, 0.4);

  --font-display: "Unbounded", "Be Vietnam Pro", system-ui, sans-serif;
  --font-text: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-md: 12px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --content: 1200px;
  --pad: 16px;
}

@media (min-width: 480px) { :root { --pad: 20px; } }
@media (min-width: 768px) { :root { --pad: 24px; } }
@media (min-width: 1024px) { :root { --pad: 32px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  position: relative;
  overflow-x: clip;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

/* Gradient/Glow Violet and Gradient/Glow Magenta behind the top of the page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 450px at calc(50% - 350px) 190px, var(--glow-violet), transparent 100%),
    radial-gradient(circle 380px at calc(50% + 520px) 260px, var(--glow-magenta), transparent 100%);
}
@media (max-width: 767px) {
  body::before {
    background:
      radial-gradient(circle 280px at 20% 120px, var(--glow-violet), transparent 100%),
      radial-gradient(circle 210px at 90% 250px, var(--glow-magenta), transparent 100%);
  }
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Type styles (DESIGN.md: 8 sizes, display and heading step down below md). */
.overline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  color: var(--text-primary);
}
@media (min-width: 480px) { .display { font-size: 36px; line-height: 46px; } }
@media (min-width: 768px) { .display { font-size: 44px; line-height: 54px; } }
.heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
}
@media (min-width: 768px) { .heading { font-size: 28px; line-height: 36px; } }
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
}
.body-l { font-size: 16px; line-height: 26px; color: var(--text-secondary); }
.body-m { font-size: 14px; line-height: 22px; color: var(--text-secondary); }
.mono-s { font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
.mono-m { font-family: var(--font-mono); font-weight: 500; font-size: 14px; line-height: 20px; color: var(--text-secondary); }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
@media (min-width: 768px) { .topbar { padding-block: 24px; } }
.brand { display: inline-flex; flex: none; }
.brand img { width: 76px; height: auto; }
@media (min-width: 768px) { .brand img { width: 101px; } }
.nav { display: flex; align-items: center; gap: 16px; }
@media (max-width: 359px) { .nav { gap: 12px; } }
@media (min-width: 768px) { .nav { gap: 32px; } }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--text-primary); }

/* Buttons (Figma component Button: Primary and Secondary, sizes M and L). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-l { min-height: 48px; padding: 0 24px; font-size: 16px; line-height: 24px; }
.btn-m { min-height: 40px; padding: 0 16px; font-size: 14px; line-height: 20px; }
.btn-primary { background: var(--gradient-brand); color: var(--text-on-solid); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: var(--glow-brand); }
.btn-secondary { background: var(--bg-container); border-color: var(--border-default); color: var(--text-primary); }
.btn-secondary:hover { border-color: var(--border-strong); }
@media (max-width: 1023px) { .btn-m { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: 40px 64px;
}
@media (min-width: 768px) {
  .hero { grid-template-columns: minmax(0, 1fr) 320px; padding-top: 64px; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; }
}
.hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-text .body-l { max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .actions .btn { flex: 1 1 0; padding-inline: 16px; } }

.mark-tile {
  display: grid;
  place-items: center;
  height: 240px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--film-base);
  box-shadow: var(--glow-brand);
}
.mark-tile img { width: 176px; }
@media (min-width: 768px) {
  .mark-tile { height: auto; aspect-ratio: 1; }
  .mark-tile img { width: 66.67%; }
}

/* Sections */
.section { padding-block: 64px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }

/* Product cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 24px;
  margin-top: 24px;
}
@media (min-width: 768px) { .cards { margin-top: 40px; } }
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-container);
  box-shadow: var(--elevation-2);
}
.media { background: var(--film-base); }
.media-frame { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-logo { padding-block: 24px; }
.media-logo .media-frame { display: grid; place-items: center; }
.media-logo img { width: 58%; max-width: 320px; }

/* Sprocket band, Size M: the film edge that frames anything that is a film. */
.sprocket {
  height: 24px;
  background-color: var(--film-base);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24'%3E%3Crect x='6' y='9' width='8' height='6' rx='3' fill='%2328252d'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 2px 0;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}
@media (min-width: 768px) { .card-body { padding: 32px; } }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: var(--brand-subtle);
  color: var(--brand-text);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-text);
}

.points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-primary);
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-solid);
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 8px;
}

/* About */
.about { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .about { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 64px; align-items: start; }
}

/* Contact */
.section-contact { padding-top: 32px; }
@media (min-width: 768px) { .section-contact { padding-top: 64px; } }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--brand-border);
  background: var(--gradient-backlight), var(--bg-container);
}
.contact-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.contact-action { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.contact-action .mono-m { overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .contact-card { flex-direction: row; align-items: center; gap: 48px; padding: 48px; }
  .contact-text { flex: 1; }
  .contact-action { align-items: center; flex: none; }
}

/* Footer */
.footer { border-top: 1px solid var(--border-subtle); }
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 24px 32px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-tertiary);
}
@media (min-width: 768px) {
  .footer-row { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 32px 40px; }
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 28px; height: 28px; }
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--text-primary); text-decoration: underline; }
