/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #0a0a0a;
  --paper: #f0f6ff;
  --accent: #c8502a;
  --muted: #7a7570;
  --card-bg: #ffffff;
  --border: rgba(10,10,10,0.1);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3rem;
  background: rgba(240,246,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 38px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-dropdown { position: relative; }
.nav-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 1.2rem; }
.nav-dropdown-panel {
  position: absolute; top: 100%; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 1.4rem 1.6rem; margin-top: 1rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 200; min-width: 310px; right: 0; left: auto;
}
.nav-dropdown:hover .nav-dropdown-panel { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown-panel::before {
  content: ''; position: absolute; top: -7px; right: 20px; left: auto;
  width: 12px; height: 12px;
  background: var(--card-bg);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.services-item {
  display: block; padding: 0.55rem 0;
  font-size: 0.82rem; color: var(--ink);
  text-decoration: none; text-transform: none;
  letter-spacing: 0; border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.services-item:first-child { padding-top: 0; }
.services-item:last-child { border-bottom: none; padding-bottom: 0; }
.services-item:hover { color: var(--accent); }
.services-item.active { color: var(--accent); font-weight: 500; }
.nav-contact { position: relative; }
.contact-panel,
.contact-dropdown { min-width: 250px; }
.contact-row {
  display: flex; align-items: flex-start;
  gap: 0.75rem; padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row:first-child { padding-top: 0; }
.contact-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--paper); display: flex;
  align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0; margin-top: 1px;
}
.contact-info { display: flex; flex-direction: column; gap: 0.1rem; }
.contact-label {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.contact-value {
  font-size: 0.82rem; color: var(--ink);
  text-decoration: none; transition: color 0.15s;
  text-transform: none !important;
}
a.contact-value:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.apps .section-label { margin-bottom: 4rem; }

/* ── HERO (index / ourapps) ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem; position: relative;
}
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--ink); max-width: 14ch;
  opacity: 0; animation: fadeUp 0.9s 0.35s forwards;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  margin-top: 1.8rem;
  font-size: 1.05rem; font-weight: 300;
  color: var(--muted); max-width: 46ch; line-height: 1.7;
  opacity: 0; animation: fadeUp 0.9s 0.5s forwards;
}
.hero-cta {
  margin-top: 2.8rem; display: inline-block;
  padding: 0.85rem 2.2rem;
  border: 1.5px solid var(--ink); border-radius: 100px;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: background 0.25s, color 0.25s;
  opacity: 0; animation: fadeUp 0.9s 0.72s forwards;
}
.hero-cta:hover { background: var(--ink); color: var(--paper); }
.hero-pillars {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.65rem; margin-top: 2.2rem;
  opacity: 0; animation: fadeUp 0.9s 0.58s forwards;
}
.pillar {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.45rem 1rem; border-radius: 100px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(10,10,10,0.08);
  color: var(--muted); backdrop-filter: blur(6px); white-space: nowrap;
}

/* ── APPS SECTION (index / ourapps) ── */
.apps { padding: 7rem 3rem; max-width: 1100px; margin: 0 auto; }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.app-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.8rem 2.5rem;
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), box-shadow 0.35s;
  opacity: 0; animation: fadeUp 0.8s forwards;
}
.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.25s; }
.app-card:nth-child(3) { animation-delay: 0.4s; }
.app-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.1); }
.app-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  opacity: 0.06; transition: transform 0.5s;
}
.app-card:hover::before { transform: scale(1.15); }
.card-future::before    { background: #2563eb; }
.card-safe::before      { background: #16a34a; }
.card-fireworks::before { background: #dc2626; }
.app-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.8rem; position: relative; z-index: 1;
}
.icon-future    { background: #dbeafe; }
.icon-safe      { background: #dcfce7; }
.icon-fireworks { background: #fee2e2; }
.app-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  margin-bottom: 1rem; position: relative; z-index: 1;
}
.tag-future     { background: #dbeafe; color: #1d4ed8; }
.tag-safe       { background: #dcfce7; color: #15803d; }
.tag-fireworks  { background: #fee2e2; color: #b91c1c; }
.app-name {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 1rem; position: relative; z-index: 1;
}
.app-desc {
  font-size: 0.92rem; font-weight: 300;
  line-height: 1.75; color: var(--muted);
  position: relative; z-index: 1; margin-bottom: 2rem;
}
.app-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; position: relative; z-index: 1; transition: gap 0.2s;
}
.link-future    { color: #1d4ed8; }
.link-safe      { color: #15803d; }
.link-fireworks { color: #b91c1c; }
.app-link:hover { gap: 0.85rem; }
.app-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.app-link:hover svg { transform: translateX(2px); }
.badge-coming-soon {
  display: inline-block;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 100px;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d;
}

/* ── SERVICE PAGE HERO ── */
.svc-hero {
  padding: 10rem 3rem 5rem; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.svc-eyebrow {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp 0.8s 0.1s forwards;
}
.svc-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.06; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.9s 0.22s forwards;
}
.svc-title em { font-style: italic; color: var(--accent); }
.svc-lead {
  font-size: 1.05rem; font-weight: 300;
  color: var(--muted); line-height: 1.75; margin-bottom: 2.2rem;
  opacity: 0; animation: fadeUp 0.9s 0.34s forwards;
}
.svc-cta {
  display: inline-block; padding: 0.85rem 2.2rem;
  border: 1.5px solid var(--ink); border-radius: 100px;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: background 0.25s, color 0.25s;
  opacity: 0; animation: fadeUp 0.9s 0.46s forwards;
}
.svc-cta:hover { background: var(--ink); color: var(--paper); }
.svc-illustration { opacity: 0; animation: fadeUp 0.9s 0.28s forwards; }
.svc-illustration svg { width: 100%; height: auto; }

/* ── SERVICE PAGE BODY ── */
.svc-body { max-width: 1100px; margin: 0 auto; padding: 0 3rem 6rem; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.feat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem;
  position: relative; overflow: hidden;
  opacity: 0; animation: fadeUp 0.8s forwards;
}
.feat-card:nth-child(1) { animation-delay: 0.05s; }
.feat-card:nth-child(2) { animation-delay: 0.15s; }
.feat-card:nth-child(3) { animation-delay: 0.25s; }
.feat-card:nth-child(4) { animation-delay: 0.35s; }
.feat-card:nth-child(5) { animation-delay: 0.45s; }
.feat-card:nth-child(6) { animation-delay: 0.55s; }
.feat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem; font-style: italic;
  color: var(--accent); opacity: 0.18;
  position: absolute; top: 1rem; right: 1.5rem; line-height: 1;
}
.feat-icon { font-size: 1.6rem; margin-bottom: 1rem; }
.feat-title { font-family: 'DM Serif Display', serif; font-size: 1.3rem; margin-bottom: 0.65rem; }
.feat-desc { font-size: 0.88rem; font-weight: 300; color: var(--muted); line-height: 1.7; }

/* ── PROCESS STRIP ── */
.process-strip { background: var(--ink); color: var(--paper); padding: 5rem 3rem; }
.process-inner { max-width: 1100px; margin: 0 auto; }
.process-strip .section-label { color: rgba(240,246,255,0.45); margin-bottom: 3rem; }
.process-strip .section-label::after { background: rgba(240,246,255,0.12); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
}
.step-num {
  font-family: 'DM Serif Display', serif;
  font-size: 0.9rem; font-style: italic;
  color: var(--accent); margin-bottom: 0.75rem; display: block;
}
.step-title { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--paper); }
.step-desc { font-size: 0.85rem; font-weight: 300; color: rgba(240,246,255,0.55); line-height: 1.65; }

/* ── CTA BAND ── */
.cta-band { max-width: 1100px; margin: 0 auto; padding: 6rem 3rem; text-align: center; }
.cta-band-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.cta-band-title em { font-style: italic; color: var(--accent); }
.cta-band-sub {
  font-size: 1rem; font-weight: 300; color: var(--muted);
  max-width: 44ch; margin: 0 auto 2.4rem; line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  nav { padding: 1.2rem 1.5rem; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
  .svc-hero { grid-template-columns: 1fr; gap: 3rem; padding: 8rem 1.5rem 3rem; }
  .svc-body { padding: 0 1.5rem 4rem; }
  .process-strip { padding: 4rem 1.5rem; }
  .cta-band { padding: 4rem 1.5rem; }
}

@media (max-width: 640px) {
  .apps { padding: 5rem 1.5rem; }
}

@media (max-width: 480px) {
  nav { padding: 0.9rem 1rem; }
  .nav-logo-img { height: 30px; }
  .nav-links { gap: 0.6rem; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.01em; }
  .nav-dropdown-panel {
    position: fixed;
    left: 0.75rem; right: 0.75rem; top: 62px;
    min-width: unset;
  }
  .nav-dropdown-panel::before { display: none; }
}
