/* ==========================================================================
   Dione Technology — dionetechnology.com
   Single-stylesheet design system. No external dependencies.
   ========================================================================== */

:root {
  --red: #e8140e;          /* brand accent (wordmark red) */
  --red-deep: #c8100b;     /* text-safe red (AA on white) */
  --red-on-dark: #ff6a66;  /* text-safe red (AA on dark bands) */
  --ink: #1d2129;          /* near-black charcoal */
  --slate: #40454e;        /* body text */
  --muted: #6b7280;        /* secondary text */
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --line: #e5e8ec;
  --dark: #15171c;         /* dark bands */
  --dark-2: #1e2128;
  --on-dark: #e8eaee;
  --on-dark-muted: #9aa1ad;
  --radius: 14px;
  --container: 1140px;
  --shadow: 0 10px 30px rgba(21, 23, 28, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--red-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Wordmark
   -------------------------------------------------------------------------- */

.wordmark {
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.wordmark .dione { color: var(--red); }
.wordmark .tech  { color: var(--ink); font-weight: 300; }
.wordmark:hover { text-decoration: none; opacity: 0.8; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; text-align: center; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 20, 14, 0.28);
}
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: var(--bg);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 9px 18px; font-size: 0.9rem; border-radius: 8px; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background:
    radial-gradient(700px 340px at 12% -10%, rgba(232, 20, 14, 0.07), transparent 60%),
    radial-gradient(560px 320px at 95% 8%, rgba(29, 33, 41, 0.05), transparent 55%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(29, 33, 41, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 22px;
}
.hero-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  max-width: 17ch;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 58ch;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 44px;
}

.hero-badge img { height: 46px; width: auto; display: block; }

/* --------------------------------------------------------------------------
   Client logo strip
   -------------------------------------------------------------------------- */

.clients {
  padding: 44px 0 52px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clients-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.clients-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px 64px;
}

.clients-row img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  mix-blend-mode: multiply; /* hides the opaque white boxes of the JPG logos on the gray band */
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.clients-row img:hover { filter: none; opacity: 1; }
/* logos whose files carry heavy internal padding need a taller box */
.clients-row img.logo-padded { height: 64px; max-width: 220px; }

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

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

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.section-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p  { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* --------------------------------------------------------------------------
   Dark band — 2026 turning point
   -------------------------------------------------------------------------- */

.band-dark {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
  padding: 92px 0;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .section-head p { color: var(--on-dark-muted); }
.band-dark .section-kicker { color: var(--red-on-dark); }

.urgency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.urgency-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.urgency-card .num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red-on-dark);
  display: block;
  margin-bottom: 14px;
}

.urgency-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.urgency-card p { color: var(--on-dark-muted); font-size: 0.98rem; margin: 0; }

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(232, 20, 14, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--red-deep); }

.service-card h3 { font-size: 1.3rem; }
.service-card p { color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.service-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--slate);
  font-size: 0.95rem;
}
.service-card li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--red);
}

/* --------------------------------------------------------------------------
   Why Dione
   -------------------------------------------------------------------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.why-item {
  padding: 6px 0 0;
}
.why-item h3 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.why-item h3::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--red);
}
.why-item p { color: var(--muted); font-size: 0.98rem; }

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

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text p { font-size: 1.08rem; }

.about-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.about-panel .stat { margin-bottom: 24px; }
.about-panel .stat:last-child { margin-bottom: 0; }
.about-panel .stat b {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.about-panel .stat span { color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   FAQ — native <details>, no JS required
   -------------------------------------------------------------------------- */

.faq-list { max-width: 820px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  content: "+" / ""; /* alt-text form keeps the glyph out of the accessible name */
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--red-deep);
}
.faq-item[open] summary::after { content: "\2212"; content: "\2212" / ""; }

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq-more { margin: 28px 0 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   Contact / final CTA
   -------------------------------------------------------------------------- */

.contact-band {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--on-dark);
  padding: 96px 0;
  text-align: center;
}

.contact-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  max-width: 22ch;
  margin: 0 auto 16px;
}

.contact-band > .container > p {
  color: var(--on-dark-muted);
  max-width: 52ch;
  margin: 0 auto 36px;
  font-size: 1.1rem;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-chip:hover {
  border-color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  color: #fff;
}
.contact-chip svg { width: 17px; height: 17px; stroke: currentColor; }

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

.site-footer {
  background: #101216;
  color: var(--on-dark-muted);
  padding: 44px 0;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .wordmark { font-size: 1.2rem; }
.site-footer .wordmark .tech { color: #fff; }

.footer-badge img { height: 40px; width: auto; display: block; }

.footer-note { width: 100%; margin-top: 20px; }
.footer-note p { margin: 0 0 4px; }

.site-footer a { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

/* Hidden state only applies when JS has stamped .js on <html>, so content
   stays visible if scripting is unavailable. */
.reveal { transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  .reveal, .btn, .service-card, .service-card::before,
  .clients-row img, .nav-toggle span { transition: none; }
}

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

@media (max-width: 900px) {
  .services-grid, .urgency-grid, .why-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 0; }
  .band-dark, .contact-band { padding: 64px 0; }
  .hero { padding: 64px 0 52px; }
}

/* --------------------------------------------------------------------------
   Print — browsers drop backgrounds by default, so undo dark-band styling
   and force revealed content visible.
   -------------------------------------------------------------------------- */

@media print {
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  .band-dark, .contact-band, .site-footer { background: none; color: var(--slate); }
  .band-dark h2, .band-dark h3, .contact-band h2,
  .site-footer .wordmark .tech { color: var(--ink); }
  .band-dark .section-head p, .urgency-card p,
  .contact-band > .container > p, .contact-chip { color: var(--slate); }
  .band-dark .section-kicker, .urgency-card .num { color: var(--red-deep); }
  .urgency-card { background: none; border-color: var(--line); }
  .contact-chip { border-color: var(--line); }
  .site-header { position: static; background: none; }
  .nav-toggle { display: none; }
}

/* 820px (not 760) because the 6-link nav row needs ~805px before it wraps */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-cta { margin-top: 8px; }
  .clients-row { gap: 28px 40px; }
  .clients-row img { height: 34px; max-width: 130px; }
}
