/* ============================================================
   TEGOSAURUS — style.css
   Aesthetic: periwinkle-purple indie — drawn from the dino logo
   Palette source: logo body #7b6fc4, spines #5a4fb0, belly #e8e6f5,
                   outline navy #1e1b38, cheek rose #c4607a
   Fonts: Syne (display) + Lora (body)
   ============================================================ */

/* ── Custom Properties ── */
:root {
  /* Backgrounds — lavender-tinted whites, lifted from the dino's belly */
  --cream:    #f4f2fc;
  --warm-off: #ebe7f7;
  --paper:    #faf9fe;

  /* Primary — periwinkle purple (the dino's body) */
  --purple:     #6b5ec7;
  --purple-lt:  #8878d8;
  --purple-dim: #4b3fa8;

  /* Accent — dusty rose (the dino's cheek blush) */
  --rose: #c4607a;

  /* Accent — soft gold */
  --gold: #b8860e;

  /* Ink — deep navy from the dino's outline strokes */
  --ink:      #1e1b38;
  --ink-mid:  #3a3660;
  --ink-soft: #7872a8;

  /* Legacy aliases so any inline styles in app pages keep working */
  --teal:       #6b5ec7;
  --teal-lt:    #8878d8;
  --teal-dim:   #4b3fa8;
  --terracotta: #c4607a;
  --amber:      #b8860e;

  --nav-h:    64px;
  --r-sm:     8px;
  --r-md:     16px;
  --r-lg:     24px;
  --shadow:   0 4px 24px rgba(30,27,56,0.10);
  --shadow-lg:0 8px 48px rgba(30,27,56,0.16);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Lora', serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dim); }

/* ── Subtle noise texture overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--paper);
  border-bottom: 2px solid var(--warm-off);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  box-shadow: 0 2px 12px rgba(30,27,56,0.07);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-dino { height: 38px; width: auto; }
.nav-brand {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  color: var(--purple); letter-spacing: -0.02em;
}
.nav-links {
  list-style: none;
  display: flex; gap: clamp(0.6rem, 2vw, 1.5rem);
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.875rem; font-weight: 600;
  color: var(--ink-mid);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--purple); border-bottom-color: var(--purple); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ── HERO (Home) ── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 5vw, 3rem);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; opacity: 0.11; }
.shape-1 {
  width: 600px; height: 600px; background: var(--purple);
  top: -200px; right: -150px;
  animation: drift1 18s ease-in-out infinite alternate;
}
.shape-2 {
  width: 400px; height: 400px; background: var(--rose);
  bottom: -100px; left: -100px;
  animation: drift2 22s ease-in-out infinite alternate;
}
.shape-3 {
  width: 280px; height: 280px; background: var(--purple-lt);
  top: 40%; left: 30%;
  animation: drift1 16s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { to { transform: translate(40px, -30px) scale(1.05); } }
@keyframes drift2 { to { transform: translate(-30px, 40px) scale(1.08); } }

.hero-content {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 900px; width: 100%; flex-wrap: wrap;
}
.hero-dino-wrap { flex-shrink: 0; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-dino {
  width: clamp(130px, 20vw, 210px); height: auto;
  filter: drop-shadow(0 12px 32px rgba(107,94,199,0.30));
}
.hero-text { flex: 1; min-width: 260px; }
.hero-eyebrow {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 0.4rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800; line-height: 1;
  color: var(--purple-dim); letter-spacing: -0.04em; margin-bottom: 1rem;
}
.hero-sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 420px; margin-bottom: 2rem; }
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  padding: 0.65rem 1.4rem; border-radius: var(--r-sm);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 4px 16px rgba(107,94,199,0.35);
}
.btn-primary:hover { background: var(--purple-dim); box-shadow: 0 6px 24px rgba(107,94,199,0.45); color: #fff; }
.btn-ghost { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-ghost:hover { background: var(--purple); color: #fff; }

/* ── SECTIONS GRID (Home) ── */
.sections-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 3rem);
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.section-card {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--r-lg);
  text-decoration: none; background: var(--paper); border: 2px solid var(--warm-off);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 0.5rem; overflow: hidden;
}
.section-card::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.card-crafts::before   { background: linear-gradient(135deg, rgba(196,96,122,0.08) 0%, transparent 60%); }
.card-music::before    { background: linear-gradient(135deg, rgba(107,94,199,0.08) 0%, transparent 60%); }
.card-software::before { background: linear-gradient(135deg, rgba(136,120,216,0.08) 0%, transparent 60%); }
.card-print::before    { background: linear-gradient(135deg, rgba(30,27,56,0.05) 0%, transparent 60%); }
.section-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--purple); }
.section-card:hover::before { opacity: 1; }
.card-icon { font-size: 2rem; margin-bottom: 0.25rem; }
.section-card h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.section-card p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.card-arrow { font-size: 1.3rem; font-weight: 700; color: var(--purple); margin-top: 0.5rem; transition: transform .2s; display: inline-block; }
.section-card:hover .card-arrow { transform: translateX(6px); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem,8vw,5.5rem) clamp(1rem,5vw,3rem) clamp(2.5rem,6vw,4rem);
  text-align: center;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.about-hero    .page-hero-bg { background: linear-gradient(135deg, #dddaf5 0%, #f4f2fc 60%); }
.crafts-hero   .page-hero-bg { background: linear-gradient(135deg, #f5dfe6 0%, #f4f2fc 60%); }
.music-hero    .page-hero-bg { background: linear-gradient(135deg, #dfdaf5 0%, #f4f2fc 60%); }
.software-hero .page-hero-bg { background: linear-gradient(135deg, #e4e0f8 0%, #f4f2fc 60%); }
.print-hero    .page-hero-bg { background: linear-gradient(135deg, #ece8fb 0%, #f4f2fc 60%); }
.contact-hero  .page-hero-bg { background: linear-gradient(135deg, #e0dbf8 0%, #f4f2fc 60%); }
.page-hero-content { position: relative; z-index: 1; }
.page-eyebrow {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 0.4rem;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800;
  color: var(--purple-dim); letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.8rem;
}
.page-subtitle { font-size: 1.05rem; color: var(--ink-soft); }

/* ── CONTENT CONTAINER ── */
.content-container { max-width: 1000px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem); width: 100%; }
.page-main { flex: 1; }

/* ── ABOUT PAGE ── */
.about-body { display: grid; grid-template-columns: 200px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 640px) { .about-body { grid-template-columns: 1fr; } }
.portrait-placeholder {
  width: 180px; height: 180px; border-radius: 50%;
  background: var(--warm-off);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--purple); overflow: hidden;
}
.portrait-caption { font-size: 0.8rem; color: var(--ink-soft); text-align: center; margin-top: 0.5rem; font-style: italic; }
.about-text h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--purple-dim); margin: 2rem 0 0.5rem; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: var(--ink-mid); margin-bottom: 0.75rem; }
.about-list { padding-left: 1.3rem; color: var(--ink-mid); }
.about-list li { margin-bottom: 0.4rem; }
.about-text a { color: var(--purple); text-decoration: underline; }

/* ── CRAFTS PAGE ── */
.crafts-filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  padding: 0.4rem 0.9rem; border-radius: 99px;
  border: 2px solid var(--warm-off);
  background: var(--paper); color: var(--ink-mid);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.filter-btn:hover, .filter-btn.active { background: var(--purple); border-color: var(--purple); color: #fff; }

.crafts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.craft-card {
  text-decoration: none; color: inherit;
  background: var(--paper); border: 2px solid var(--warm-off); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.craft-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--purple); }
.craft-thumb { height: 200px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.craft-thumb-1 { background: linear-gradient(135deg, #f0dceb, #f5e4f0); }
.craft-thumb-2 { background: linear-gradient(135deg, #dddaf5, #e8e5fa); }
.craft-thumb-3 { background: linear-gradient(135deg, #e3dff5, #ece8fb); }
.craft-thumb-4 { background: linear-gradient(135deg, #ece8fb, #f4f2fc); }
.craft-thumb-5 { background: linear-gradient(135deg, #f5dae5, #faedf4); }
.craft-thumb-6 { background: linear-gradient(135deg, #d8d4f0, #e4e0fa); }

.thumb-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; width: 100%; height: 100%; font-size: 3rem; color: var(--ink-soft);
}
.thumb-placeholder p { font-size: 0.75rem; font-style: italic; }
.thumb-placeholder.big { font-size: 4rem; height: 300px; }
.thumb-placeholder.small { font-size: 2rem; }
.thumb-placeholder.tall { height: 260px; font-size: 3.5rem; }

.craft-info { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.craft-tag, .print-type-tag {
  display: inline-block;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rose); background: rgba(196,96,122,0.10);
  padding: 2px 8px; border-radius: 99px; width: fit-content;
}
.craft-info h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.craft-info time { font-size: 0.82rem; color: var(--ink-soft); }
.craft-card.hidden { display: none; }

/* ── CRAFT / PRINT PROJECT DETAIL ── */
.breadcrumb-bar { padding-bottom: 0; padding-top: 1.5rem; }
.breadcrumb-bar a { font-family: var(--font-display); font-size: 0.85rem; color: var(--purple-lt); font-weight: 600; }
.project-article { padding-top: 2rem; }
.project-header { margin-bottom: 2rem; }
.project-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  color: var(--purple-dim); letter-spacing: -0.03em; margin: 0.5rem 0 0.75rem;
}
.project-meta-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.meta-item { font-size: 0.88rem; color: var(--ink-soft); background: var(--warm-off); padding: 3px 10px; border-radius: 99px; }
.project-gallery { margin-bottom: 2.5rem; }
.gallery-main { margin-bottom: 0.75rem; }
.gallery-thumbs { display: flex; gap: 0.75rem; }
.gallery-thumbs .gallery-placeholder { flex: 1; border-radius: var(--r-sm); overflow: hidden; }
.gallery-placeholder {
  background: var(--warm-off); border-radius: var(--r-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 3rem; gap: 0.5rem; color: var(--ink-soft);
  border: 2px dashed rgba(107,94,199,0.20);
}
.gallery-placeholder p { font-size: 0.78rem; font-style: italic; color: var(--ink-soft); }
.project-body .project-section { margin-bottom: 2.5rem; }
.project-body h2 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--purple-dim); margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--warm-off); padding-bottom: 0.4rem;
}
.project-body p { color: var(--ink-mid); margin-bottom: 0.75rem; }
.materials-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.materials-list li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 0.5rem 0.75rem; background: var(--warm-off); border-radius: var(--r-sm);
}
.materials-list strong { font-family: var(--font-display); font-size: 0.9rem; min-width: 120px; color: var(--ink); }
.materials-list span { font-size: 0.9rem; color: var(--ink-soft); }
.project-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0; padding-bottom: 3rem;
  border-top: 2px solid var(--warm-off); margin-top: 1rem;
  flex-wrap: wrap; gap: 1rem;
}
.project-nav a {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600;
  color: var(--purple); background: var(--warm-off);
  padding: 0.5rem 1rem; border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.project-nav a:hover { background: var(--purple); color: #fff; }

/* ── MUSIC PAGE ── */
.music-hero { padding-bottom: 3rem; }
.music-wave-deco {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 4px; height: 36px; z-index: 1;
}
.music-wave-deco span {
  width: 4px; border-radius: 4px; background: var(--purple); opacity: 0.35;
  animation: wave var(--d, 0.8s) ease-in-out infinite alternate; height: var(--h, 20px);
}
.music-wave-deco span:nth-child(1)  { --h:10px; --d:0.7s; }
.music-wave-deco span:nth-child(2)  { --h:24px; --d:0.9s; }
.music-wave-deco span:nth-child(3)  { --h:32px; --d:0.65s; }
.music-wave-deco span:nth-child(4)  { --h:18px; --d:1.1s; }
.music-wave-deco span:nth-child(5)  { --h:28px; --d:0.75s; }
.music-wave-deco span:nth-child(6)  { --h:36px; --d:0.85s; }
.music-wave-deco span:nth-child(7)  { --h:22px; --d:0.95s; }
.music-wave-deco span:nth-child(8)  { --h:30px; --d:0.7s; }
.music-wave-deco span:nth-child(9)  { --h:16px; --d:1.0s; }
.music-wave-deco span:nth-child(10) { --h:12px; --d:0.8s; }
@keyframes wave { to { transform: scaleY(0.3); } }
.music-wave-deco.playing span { opacity: 0.7; }

/* Now Playing card */
.now-playing-card {
  background: var(--paper); border: 2px solid var(--purple); border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem; margin-bottom: 2rem;
  display: grid; grid-template-columns: 60px 1fr auto; grid-template-rows: auto auto auto;
  gap: 0.5rem 1.25rem; align-items: center; box-shadow: var(--shadow);
}
.np-art { font-size: 2.5rem; grid-row: 1/2; grid-column: 1/2; text-align: center; }
.np-info { grid-row: 1/2; grid-column: 2/3; }
.np-label { font-size: 0.72rem; font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.np-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--purple-dim); }
.np-meta  { font-size: 0.82rem; color: var(--ink-soft); }
.np-controls { grid-row: 1/2; grid-column: 3/4; display: flex; gap: 0.5rem; align-items: center; }
.np-btn {
  background: none; border: 2px solid var(--warm-off); border-radius: 50%;
  width: 36px; height: 36px; font-size: 0.85rem; cursor: pointer;
  transition: background .15s, border-color .15s; color: var(--ink-mid);
  display: flex; align-items: center; justify-content: center;
}
.np-btn:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.np-play { width: 48px; height: 48px; background: var(--purple); border-color: var(--purple); color: #fff; font-size: 1rem; }
.np-play:hover { background: var(--purple-dim); }
.np-progress-wrap { grid-row: 2/3; grid-column: 1/4; display: flex; align-items: center; gap: 0.75rem; }
.np-time { font-family: var(--font-display); font-size: 0.78rem; color: var(--ink-soft); min-width: 32px; }
.np-progress, .np-volume {
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px; background: var(--warm-off); cursor: pointer; flex: 1; outline: none;
}
.np-progress::-webkit-slider-thumb, .np-volume::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%; background: var(--purple); cursor: pointer;
}
.np-volume-wrap { grid-row: 3/4; grid-column: 1/4; display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.np-volume { flex: 0 1 120px; }

/* Track list */
.track-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.track-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1rem; background: var(--paper); border: 2px solid var(--warm-off);
  border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, background .15s;
}
.track-item:hover, .track-item.active { border-color: var(--purple); background: rgba(107,94,199,0.05); }
.track-item.active .track-name { color: var(--purple); }
.track-play-btn {
  background: var(--warm-off); border: none; width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 0.85rem; transition: background .15s, color .15s;
  flex-shrink: 0; color: var(--ink-mid);
}
.track-item:hover .track-play-btn,
.track-item.active .track-play-btn { background: var(--purple); color: #fff; }
.track-art { font-size: 1.5rem; flex-shrink: 0; }
.track-info { flex: 1; }
.track-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; display: block; color: var(--ink); }
.track-detail { font-size: 0.8rem; color: var(--ink-soft); }
.track-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); opacity: 0; flex-shrink: 0; transition: opacity .2s; }
.track-item.active .track-indicator { opacity: 1; animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{transform:scale(1);} 50%{transform:scale(1.5);} }
.music-note { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; margin-top: 0.5rem; }
.music-note code { background: var(--warm-off); padding: 1px 5px; border-radius: 4px; font-style: normal; }

/* ── SOFTWARE PAGE ── */
.apps-list { display: flex; flex-direction: column; gap: 1rem; }
.app-row {
  display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem;
  text-decoration: none; color: inherit; background: var(--paper);
  border: 2px solid var(--warm-off); border-radius: var(--r-lg);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.app-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--purple); }
.app-icon-wrap { flex-shrink: 0; }
.app-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 4px 16px rgba(30,27,56,0.14);
}
.app-icon-1 { background: linear-gradient(135deg, #9084e0, #5a4fb0); }
.app-icon-2 { background: linear-gradient(135deg, #dd80a0, #b84868); }
.app-icon-3 { background: linear-gradient(135deg, #a8a0e0, #6b5ec7); }
.app-row-info { flex: 1; }
.app-row-info h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-bottom: 0.3rem; }
.app-row-info p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.app-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.app-tag {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--purple-dim); background: rgba(107,94,199,0.10);
  padding: 2px 8px; border-radius: 99px;
}
.app-row-arrow { font-size: 1.3rem; color: var(--purple); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   APP PRODUCT PAGE — dynamic scroll-driven layout
   ══════════════════════════════════════════════════════════ */
.app-hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem,8vw,5rem) clamp(1rem,5vw,3rem) 0;
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 420px;
}
.app-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, #e0dcf8 0%, #ece9fb 55%, #f4f2fc 100%);
}
.app-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 110%, rgba(107,94,199,0.15) 0%, transparent 70%);
}
.app-hero-content {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; gap: clamp(2rem,5vw,5rem);
  max-width: 960px; width: 100%; flex-wrap: wrap; padding-bottom: 0;
}
.app-hero-text { flex: 1; min-width: 260px; padding-bottom: clamp(2.5rem,5vw,4rem); }
.app-hero-eyebrow {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.4rem;
}
.app-hero-title {
  font-family: var(--font-display); font-size: clamp(3rem,8vw,5rem);
  font-weight: 800; color: var(--purple-dim); letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.8rem;
}
.app-hero-desc { font-size: 1.05rem; color: var(--ink-soft); max-width: 380px; margin-bottom: 1.75rem; }
.app-hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.app-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.app-store-btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.appstore-badge { font-size: 1.1rem; }
.app-hero-icon {
  width: 80px; height: 80px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(30,27,56,0.20); margin-bottom: 1rem;
}
.app-hero-phone-wrap {
  flex-shrink: 0; align-self: flex-end; position: relative; z-index: 2;
  width: clamp(140px, 22vw, 220px); transform: translateY(40px);
  animation: heroPhoneRise .9s cubic-bezier(0.22,1,0.36,1) .2s both;
}
@keyframes heroPhoneRise {
  from { transform: translateY(120px) rotate(4deg); opacity: 0; }
  to   { transform: translateY(40px)  rotate(0deg); opacity: 1; }
}

/* Phone Mockup */
.phone-mockup {
  position: relative; width: 100%; border-radius: 32px; background: var(--ink);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08) inset, 0 0 0 3px #1a1830,
              0 24px 64px rgba(30,27,56,0.38), 0 8px 24px rgba(30,27,56,0.22);
  overflow: hidden; aspect-ratio: 9 / 19.5;
}
.phone-mockup::before {
  content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 35%; height: 6px; background: rgba(0,0,0,0.5); border-radius: 3px; z-index: 3;
}
.phone-mockup::after {
  content: ''; position: absolute; inset: 0; border-radius: 32px;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.12) inset; pointer-events: none; z-index: 4;
}
.phone-screen {
  position: absolute; inset: 4px; border-radius: 28px; background: var(--warm-off);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem; font-size: 2.5rem; color: var(--ink-soft);
}
.phone-screen p { font-size: 0.7rem; font-style: italic; color: var(--ink-soft); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* Feature sections */
.app-features { padding: 0; }
.feature-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
  max-width: 1040px; margin: 0 auto; position: relative;
}
.feature-section:nth-child(even) .feature-phones { order: -1; }
@media (max-width: 680px) {
  .feature-section { grid-template-columns: 1fr; gap: 2rem; }
  .feature-section:nth-child(even) .feature-phones { order: 0; }
}
.feature-section + .feature-section::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px; background: var(--warm-off); border-radius: 1px;
}
.feature-number {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose); opacity: 0.8; margin-bottom: 0.5rem;
}
.feature-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.9rem;
}
.feature-title em { color: var(--purple); font-style: normal; }
.feature-desc { font-size: 1rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.25rem; }
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.92rem; color: var(--ink-mid); }
.feature-list li::before {
  content: '✓'; flex-shrink: 0; width: 20px; height: 20px;
  background: rgba(107,94,199,0.14); color: var(--purple); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 900; margin-top: 1px;
}
.feature-phones { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.feature-phones .phone-mockup { width: clamp(150px, 22vw, 210px); position: relative; z-index: 2; }
.feature-phones.duo .phone-mockup:first-child {
  position: absolute; left: 0; top: 20px; z-index: 1;
  width: clamp(130px, 18vw, 175px); opacity: 0.75;
  transform: rotate(-6deg) translateX(-10px);
}
.feature-phones.duo .phone-mockup:last-child {
  position: relative; z-index: 2; width: clamp(150px, 22vw, 210px);
  transform: rotate(2deg); margin-left: auto;
}

/* Scroll animations */
.reveal-left  { opacity: 0; transform: translateX(-60px) rotate(-3deg); }
.reveal-right { opacity: 0; transform: translateX( 60px) rotate( 3deg); }
.reveal-up    { opacity: 0; transform: translateY( 50px); }
.reveal-phone { opacity: 0; transform: translateY(60px) rotate(4deg) scale(0.92); }
.revealed {
  opacity: 1 !important; transform: none !important;
  transition: opacity .7s cubic-bezier(0.22,1,0.36,1), transform .7s cubic-bezier(0.22,1,0.36,1);
}
.stagger-children > * { opacity: 0; transform: translateY(22px); }
.stagger-children.revealed > * { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.stagger-children.revealed > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: .1s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: .18s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: .26s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: .34s; }

/* Tech strip */
.app-tech-strip { background: var(--ink); color: rgba(255,255,255,0.85); padding: clamp(2.5rem,5vw,4rem) clamp(1rem,5vw,3rem); }
.app-tech-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
@media (max-width: 600px) { .app-tech-inner { grid-template-columns: 1fr; } }
.app-tech-title {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem;
}
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.tech-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-sm); padding: 0.65rem 0.9rem; }
.tech-item strong { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; display: block; color: rgba(255,255,255,0.9); margin-bottom: 2px; }
.tech-item span { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.app-tech-store .btn-primary { background: #fff; color: var(--ink); font-size: 0.9rem; }
.app-tech-store .btn-primary:hover { background: rgba(255,255,255,0.85); color: var(--ink); }

/* Legacy selectors */
.app-page { padding-top: 2rem; }
.app-page-header { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; }
.app-page-icon { width: 100px; height: 100px; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 3rem; flex-shrink: 0; box-shadow: 0 4px 24px rgba(30,27,56,0.18); }
.app-page-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--purple-dim); letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.app-page-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.app-screenshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.screenshot-placeholder {
  aspect-ratio: 9/19.5; background: var(--warm-off); border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 2rem; gap: 0.4rem; border: 2px dashed rgba(107,94,199,0.18); color: var(--ink-soft);
}
.screenshot-placeholder p { font-size: 0.75rem; font-style: italic; }

/* ── PRINT PAGE ── */
.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.print-card {
  text-decoration: none; color: inherit; background: var(--paper); border: 2px solid var(--warm-off);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column;
}
.print-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--purple); }
.print-thumb { overflow: hidden; }
.print-thumb-1 { background: linear-gradient(160deg, #e8e0fc, #d4ccf5); }
.print-thumb-2 { background: linear-gradient(160deg, #f5dfe6, #ecc8d4); }
.print-thumb-3 { background: linear-gradient(160deg, #dddaf5, #ccc8f0); }
.print-thumb-4 { background: linear-gradient(160deg, #ede9fc, #ddd8f8); }
.print-info { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.print-info h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.print-info time { font-size: 0.82rem; color: var(--ink-soft); }
.print-info p { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* ── CONTACT PAGE ── */
.contact-section { padding-top: 2.5rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
@media (max-width: 700px) { .contact-layout { grid-template-columns: 1fr; gap: 2rem; } }
.contact-text h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--purple-dim); margin-bottom: 1rem; }
.contact-text p { color: var(--ink-mid); margin-bottom: 0.75rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.contact-link-item {
  display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem;
  background: var(--warm-off); border-radius: var(--r-md);
  text-decoration: none; color: inherit; border: 2px solid transparent; transition: border-color .15s;
}
.contact-link-item:hover { border-color: var(--purple); }
.contact-link-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-link-item strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--ink); }
.contact-link-item span { font-size: 0.83rem; color: var(--ink-soft); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--ink-mid); letter-spacing: 0.04em; }
.form-group input, .form-group textarea, .form-group select {
  font-family: var(--font-body); font-size: 0.95rem; padding: 0.65rem 0.9rem;
  border: 2px solid var(--warm-off); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); outline: none; transition: border-color .15s;
  resize: vertical; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107,94,199,0.14);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); min-height: 1.2rem; }

/* ── FOOTER ── */
.site-footer {
  margin-top: auto; padding: 2rem clamp(1rem, 4vw, 2.5rem);
  border-top: 2px solid var(--warm-off);
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap; text-align: center;
}
.footer-dino { height: 32px; width: auto; opacity: 0.6; }
.site-footer p { font-size: 0.85rem; color: var(--ink-soft); }

/* ── RESPONSIVE NAV ── */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 2px solid var(--warm-off);
    flex-direction: column; padding: 1rem; box-shadow: var(--shadow); z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 0.5rem 0; }
}

/* ── PAGE LOAD ANIMATION ── */
.page-main > * { animation: fadeUp .5s ease both; }
.page-main > *:nth-child(2) { animation-delay: .1s; }
.page-main > *:nth-child(3) { animation-delay: .2s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero { animation: fadeUp .6s ease both; }
.sections-grid { animation: fadeUp .6s .15s ease both; }
