/* ============================================================
   Alamin IT — alaminit.dev
   LUXURY theme (2026-10-17): near-black, ivory, gold.
   Serif display headings (Playfair Display) + Poppins body.
   ============================================================ */

:root {
  --gold: #c69a2c;
  --gold-soft: #e7c877;
  --gold-pale: #f5e3ae;
  --gold-deep: #8a6d1f;
  --gold-line: rgba(198, 154, 44, 0.45);
  --green-900: #04412f;
  --green-800: #065a41;
  --mint: #35b48a;
  --mint-soft: #8fd8bf;
  --bg: #faf7f0;
  --bg-alt: #f3eee1;
  --surface: #ffffff;
  --surface-2: #fbf8f1;
  --text: #1d2921;
  --text-soft: #5d6a60;
  --border: #e4ddc9;
  --shadow: 0 10px 30px rgba(68, 54, 14, 0.10);
  --shadow-lift: 0 22px 48px rgba(68, 54, 14, 0.16);
  --radius: 16px;
  --header-bg: rgba(250, 247, 240, 0.9);
}

html[data-theme="dark"] {
  --bg: #080809;
  --bg-alt: #0c0c0d;
  --surface: #121214;
  --surface-2: #18181b;
  --text: #f4f0e4;
  --text-soft: #aaa18e;
  --border: #23231e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 22px 48px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(8, 8, 9, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #ffffff; }

h1, h2, .section-title, .detail-info h1, .hero h1 {
  font-family: "Playfair Display", "Poppins", Georgia, serif;
  letter-spacing: 0.01em;
}

img { max-width: 100%; }

a { color: var(--green-800); }
html[data-theme="dark"] a { color: var(--gold-soft); }

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 12px 32px rgba(68, 54, 14, 0.14); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 2px var(--gold), 0 6px 18px rgba(0, 0, 0, 0.5);
}
.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-name em { font-style: italic; color: var(--gold); }
.brand-lockup { height: 42px; width: auto; display: block; }
.lockup-dark { display: none; }
html[data-theme="dark"] .lockup-light { display: none; }
html[data-theme="dark"] .lockup-dark { display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { background: rgba(198, 154, 44, 0.10); color: var(--gold-soft); }
.main-nav a.active { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #17130a; font-weight: 600; }

.theme-toggle {
  margin-left: 6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--surface);
  color: var(--gold-deep);
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold-deep);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(198, 154, 44, 0.30); }
.btn-primary { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #17130a; }
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-pale), var(--gold-soft)); }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #17130a; }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-pale), var(--gold-soft)); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold-soft); }
.btn-outline:hover { background: rgba(198, 154, 44, 0.10); }
html[data-theme="dark"] .btn-outline { border-color: var(--gold); color: var(--gold-soft); }
/* sheen sweep on primary buttons */
.btn-primary::after, .btn-gold::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::after, .btn-gold:hover::after { left: 130%; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(620px 380px at 82% 30%, rgba(198, 154, 44, 0.28), transparent 65%),
    linear-gradient(160deg, #03382a 0%, #04412f 55%, #06503a 100%);
  color: #f4f0e4;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 72px 0 84px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.3rem);
  line-height: 1.06;
  margin: 0 0 18px;
  font-weight: 600;
}
.hero h1 .accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-soft) 20%, var(--gold-pale) 40%, var(--gold) 60%, var(--gold-soft) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gold-shimmer 6s linear infinite;
}
@keyframes gold-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}

.hero-sub {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: #cfded2;
  margin: 0 0 32px;
  max-width: 34rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-outline { border-color: rgba(244, 240, 228, 0.55); color: #f4f0e4; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }

.hero-media { text-align: center; position: relative; }
.hero-badge {
  width: min(320px, 78vw);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(231, 200, 119, 0.55), 0 0 90px rgba(198, 154, 44, 0.30), 0 30px 60px rgba(0, 0, 0, 0.35);
  animation: badge-float 7s ease-in-out infinite;
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Stats ---------- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: -38px auto 0;
  position: relative;
  z-index: 2;
}

.stat {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 24px 12px 20px;
}
.stat-num {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #a8842a;
  line-height: 1.1;
}
.stat-label { display: block; font-size: 0.88rem; color: var(--text-soft); margin-top: 4px; letter-spacing: 0.04em; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin: 0 0 12px; color: var(--text); font-weight: 600; }
.section-head::after {
  content: "";
  display: block;
  width: 58px; height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-sub { color: var(--text-soft); margin: 0; }

.page-hero {
  background:
    radial-gradient(560px 300px at 85% 0%, rgba(198, 154, 44, 0.24), transparent 65%),
    linear-gradient(150deg, #03382a, #06503a);
  color: #f4f0e4;
  padding: 60px 0 52px;
  border-bottom: 1px solid var(--gold-line);
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 600; }
.page-hero p { margin: 0; color: #cfded2; max-width: 44rem; font-size: 1.05rem; }

/* ---------- Search ---------- */

.search-wrap { max-width: 560px; margin: 0 auto 36px; }
.search-box {
  width: 100%;
  padding: 14px 22px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-box::placeholder { color: var(--text-soft); }
.search-box:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198, 154, 44, 0.18); }

/* ---------- App cards ---------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.app-card-top { display: flex; gap: 16px; align-items: center; }
.app-card-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(68, 54, 14, 0.18);
}
.app-card-name { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.app-card-name a { color: var(--text); text-decoration: none; }
.app-card-name a:hover { color: var(--gold-soft); }
.app-card-pkg { margin: 2px 0 0; font-size: 0.8rem; color: var(--text-soft); word-break: break-all; }
.app-card-desc { margin: 0; color: var(--text-soft); font-size: 0.95rem; flex-grow: 1; }

.app-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meta-chip {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--gold-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
}
.status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 11px;
  background: #fbf0d3;
  color: #7a5b06;
  border: 1px solid var(--gold-line);
}
.status-badge.live { background: #dcf5e7; color: var(--green-900); border-color: rgba(4, 65, 47, 0.25); }

.app-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.app-card-actions .btn { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- App cards: fx style (banner card, luxury skin) ---------- */

@property --fxa {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.app-card.fx-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-color: var(--gold-line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.fx-banner {
  height: 150px;
  overflow: hidden;
  flex-shrink: 0;
}
.fx-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.fx-card:hover .fx-banner img { transform: scale(1.05); }
.fx-banner-empty {
  background: linear-gradient(120deg, #17130a, var(--gold));
}

.fx-body {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fx-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  margin-top: -26px;
  margin-bottom: 10px;
  border: 3px solid var(--surface);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--gold-line), 0 10px 22px rgba(68, 54, 14, 0.22);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.fx-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fx-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.fx-foot-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.fx-downloads {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}
.fx-card .status-badge { white-space: nowrap; font-size: 0.7rem; padding: 3px 8px; }
.fx-details {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
}
.fx-details:hover { color: var(--gold-deep); }

.fx-play {
  font-size: 0.8rem;
  font-weight: 600;
  color: #17130a;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.2s ease;
}
a.fx-play:hover { filter: brightness(1.1); }
.fx-play-soon { opacity: 0.55; cursor: default; background: var(--surface-2); color: var(--gold-deep); border: 1px solid var(--gold-line); }

/* Hover: card lifts + a golden "snake" of light travels the border. */
.app-card.fx-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.app-card.fx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--fxa),
    transparent 0deg, transparent 225deg,
    var(--gold) 285deg, #9a7b24 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.app-card.fx-card:hover::before {
  opacity: 1;
  animation: fx-snake 2.8s linear infinite;
}
@keyframes fx-snake {
  to { --fxa: 360deg; }
}

.empty-state {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--gold-line);
  border-radius: var(--radius);
  padding: 44px 26px;
  color: var(--text-soft);
}
.empty-state h2, .empty-state h3 { color: var(--text); margin-top: 0; }

/* ---------- Teaser / contact strips ---------- */

.blog-teaser {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.blog-teaser h2 { margin: 0 0 6px; color: var(--text); font-family: "Playfair Display", Georgia, serif; }
.blog-teaser p { margin: 0; color: var(--text-soft); }

.contact-strip { text-align: center; }
.contact-strip .section-title { margin-bottom: 8px; }
.contact-strip p { color: var(--text-soft); margin: 0 0 22px; }
.contact-email {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Prose (legal / text pages) ---------- */

.prose { max-width: 780px; }
.prose h2 { color: var(--green-900); margin: 34px 0 10px; font-size: 1.32rem; font-family: "Playfair Display", Georgia, serif; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 8px; font-size: 1.08rem; color: var(--text); }
.prose p { margin: 0 0 14px; color: var(--text); }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.last-updated { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- About ---------- */

.about-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: start;
}
.about-media img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--gold-line), 0 0 70px rgba(198, 154, 44, 0.20), var(--shadow-lift);
}
.about-wrap .prose { max-width: none; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.service-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--gold-line); }
.service-card h3 { margin: 0 0 8px; color: var(--green-900); font-size: 1.08rem; }
.service-card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--gold-line);
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--shadow);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 26px;
  align-items: start;
}
.contact-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 20px;
}
.contact-card h3 { margin: 0 0 10px; color: var(--green-900); font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; }
.contact-card p { margin: 0 0 12px; color: var(--text-soft); }
.contact-card ul { margin: 0; padding-left: 20px; color: var(--text-soft); }
.contact-card li { margin-bottom: 6px; }
.contact-card .btn { margin-top: 4px; }

.form {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.94rem; color: var(--text); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 15px;
  font: inherit;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198, 154, 44, 0.16); }
.form-note { color: var(--text-soft); font-size: 0.88rem; margin: 14px 0 0; }

/* ---------- App detail ---------- */

.back-link { display: inline-block; margin-bottom: 22px; font-weight: 600; text-decoration: none; color: var(--gold-deep); }
.back-link:hover { text-decoration: underline; }

.detail-head {
  display: flex;
  gap: 26px;
  align-items: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  flex-wrap: wrap;
}
.detail-icon { width: 118px; height: 118px; border-radius: 26px; object-fit: cover; box-shadow: 0 0 0 1px var(--gold-line), 0 12px 26px rgba(68, 54, 14, 0.20); }
.detail-info { flex: 1 1 260px; }
.detail-info h1 { margin: 0 0 4px; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; font-weight: 600; }
.detail-info .pkg { color: var(--text-soft); font-size: 0.9rem; margin: 0 0 14px; word-break: break-all; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.stat-chip {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 0.86rem;
  font-weight: 600;
}
.stat-chip b { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-deep); font-weight: 700; }

.coming-soon {
  display: inline-block;
  background: #fbf0d3;
  color: #7a5b06;
  border: 1px solid var(--gold-line);
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 20px;
}

.detail-block { margin-top: 40px; }
.detail-block h2 { color: var(--text); font-size: 1.5rem; margin: 0 0 14px; font-family: "Playfair Display", Georgia, serif; font-weight: 600; }
.detail-block p { color: var(--text); margin: 0 0 14px; max-width: 820px; }
.features-list { padding-left: 22px; margin: 0; max-width: 820px; }
.features-list li { margin-bottom: 8px; }

/* Screenshots carousel */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); }
.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
.carousel-track figure { margin: 0; flex: 0 0 100%; }
.carousel-track img {
  width: 100%;
  height: min(560px, 70vh);
  object-fit: contain;
  background: #07271f;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: rgba(4, 65, 47, 0.88);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-btn:hover { background: var(--green-800); }
.carousel-count {
  position: absolute;
  right: 14px; bottom: 12px;
  background: rgba(4, 65, 47, 0.88);
  border: 1px solid var(--gold-line);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  z-index: 2;
}

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(160deg, #03382a, #04412f);
  color: #cfded2;
  margin-top: 0;
  padding: 46px 0 36px;
  border-top: 1px solid var(--gold-line);
}
.footer-inner { text-align: center; }
.footer-logo {
  width: 58px; height: 58px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 0 0 2px var(--gold-line), 0 10px 24px rgba(0, 0, 0, 0.5);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; margin-bottom: 16px; }
.footer-nav a { color: #cfded2; text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold-soft); text-decoration: underline; }
.copyright { margin: 0; font-size: 0.9rem; color: #9db8aa; }

/* ---------- Page animations ---------- */

/* Scroll reveal: elements rise + fade in as they enter the viewport.
   JS adds .rv to targets and .rv-in when visible. Without JS (or before
   it runs) nothing is hidden for long: the hidden state only applies
   once JS marks the element, and a safety timeout reveals all. */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.21, 1);
}
.rv-in { opacity: 1; transform: none; }

/* Hero entrance: staggered rise on page load */
.hero-inner > * { animation: hero-rise 0.9s cubic-bezier(0.22, 0.61, 0.21, 1) both; }
.hero-media { animation-delay: 0.15s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.page-hero .container { animation: hero-rise 0.8s cubic-bezier(0.22, 0.61, 0.21, 1) both; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 52px 0 88px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { order: -1; }
  .hero-badge { width: min(190px, 55vw); }
  .about-wrap { grid-template-columns: 1fr; }
  .about-media { max-width: 220px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-strip { margin-top: -32px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--gold-line);
    box-shadow: var(--shadow);
    padding: 12px 20px 18px;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .site-header .container { position: relative; }
  .header-inner { position: relative; }
  .main-nav a { padding: 12px 14px; }
  .theme-toggle { margin: 8px 0 0; align-self: flex-start; }
  .brand-badge { width: 38px; height: 38px; }
  .brand-name { font-size: 1.22rem; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.78rem; }
  .section { padding: 48px 0; }
  .detail-head { padding: 22px; }
  .detail-icon { width: 92px; height: 92px; border-radius: 22px; }
  .blog-teaser { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-card.fx-card:hover::before { animation: none; }
  .hero-badge { animation: none; }
  .hero h1 .accent { animation: none; }
  .hero-inner > *, .page-hero .container { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Dark theme (toggle): deep-luxury variants ---------- */
html[data-theme="dark"] a { color: var(--gold-soft); }
html[data-theme="dark"] .brand-name em { color: var(--gold-soft); }
html[data-theme="dark"] .theme-toggle { color: var(--gold-soft); }
html[data-theme="dark"] .nav-toggle span { background: var(--gold-soft); }
html[data-theme="dark"] .stat-num { color: var(--gold-soft); }
html[data-theme="dark"] .meta-chip { color: var(--gold-soft); }
html[data-theme="dark"] .chip { color: var(--gold-soft); }
html[data-theme="dark"] .status-badge { background: #2a2110; color: var(--gold-soft); }
html[data-theme="dark"] .status-badge.live { background: #10362a; color: #8fd8bf; border-color: rgba(53, 180, 138, 0.4); }
html[data-theme="dark"] .coming-soon { background: #2a2110; color: var(--gold-soft); }
html[data-theme="dark"] .prose h2 { color: var(--gold-soft); }
html[data-theme="dark"] .service-card h3 { color: var(--gold-soft); }
html[data-theme="dark"] .contact-card h3 { color: var(--gold-soft); }
html[data-theme="dark"] .stat-chip b { color: var(--gold-soft); }
html[data-theme="dark"] .back-link { color: var(--gold-soft); }
html[data-theme="dark"] .fx-details:hover { color: var(--gold-soft); }
html[data-theme="dark"] .fx-play-soon { color: var(--gold-soft); }
html[data-theme="dark"] .app-card.fx-card::before {
  background: conic-gradient(from var(--fxa),
    transparent 0deg, transparent 225deg,
    var(--gold) 285deg, var(--gold-pale) 330deg, transparent 360deg);
}
