/* ==========================================================================
   Dialsoft.com — stylesheet (LIGHT THEME)
   --------------------------------------------------------------------------
   Look: clean white pages, soft warm-gray section bands, a muted burnt-orange
   accent and a steady slate/navy blue. Headings use a monospace font as a
   nod to Dialsoft's BBS / terminal roots; body text is an easy-reading sans.
   Change the colors in one place: the variables under :root below.
   ========================================================================== */

:root {
  --bg:        #ffffff;   /* page background */
  --bg-2:      #f6f4f0;   /* alternate section band (warm off-white) */
  --panel:     #ffffff;   /* card background */
  --line:      #e4e0d8;   /* borders and dividers */
  --text:      #1d2a3a;   /* main text (deep navy, softer than black) */
  --muted:     #5b6878;   /* secondary text */
  --orange:    #d9822b;   /* muted orange — main accent / buttons */
  --orange-dk: #b8691c;   /* darker orange for hover and small text */
  --orange-lt: #fbeedf;   /* pale orange tint for highlights */
  --blue:      #1d6bc4;   /* logo blue — second accent */
  --blue-dk:   #163a63;   /* deep navy for headings/footer */
  --blue-lt:   #eaf3fc;   /* pale blue tint */
  --radius:    12px;
  --shadow:    0 1px 2px rgba(29,42,58,.05), 0 8px 24px rgba(29,42,58,.06);
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; } /* room for sticky header */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  font: 700 20px var(--mono); letter-spacing: 0.12em; text-decoration: none; color: var(--blue-dk);
  display: flex; align-items: center; gap: 10px;
}
.logo img { height: 38px; width: auto; display: block; }   /* the Dialsoft logo image */
.logo-word { font: 700 23px var(--sans); letter-spacing: -0.01em; color: var(--blue-dk); } /* "Dialsoft" wordmark, matches the logo's bold sans lettering */
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.site-nav a:hover { color: var(--blue); }
.site-nav .nav-cta { color: #fff; background: var(--orange); padding: 8px 16px; border-radius: 8px; font-weight: 600; }
.site-nav .nav-cta:hover { color: #fff; background: var(--orange-dk); }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 20px; border-radius: 8px; padding: 4px 10px; cursor: pointer; }

/* ---------- Shared text styles ---------- */
.eyebrow {
  font: 600 13px var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange-dk); margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--mono); line-height: 1.15; margin: 0; color: var(--blue-dk); }
h1 { font-size: clamp(36px, 5.2vw, 58px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.01em; }
h3 { font-size: 21px; }
.accent { color: var(--orange); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 24px 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 16px;
  font-family: var(--sans); transition: transform .12s, background .12s, border-color .12s, color .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-ghost:hover { background: var(--blue-lt); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 100px;
  /* soft orange and blue glows on white */
  background:
    radial-gradient(700px 380px at 92% 10%, rgba(29,107,196,0.10), transparent 65%),
    radial-gradient(600px 340px at 0% 100%, rgba(217,130,43,0.10), transparent 65%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }

/* Terminal window — kept as the one dark "screen" element, like a monitor on a white desk */
.terminal {
  background: #13202f; border: 1px solid #0d1724; border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(29,42,58,0.22);
  overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #e9edf2; border-bottom: 1px solid #d3dae3; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ec6a5e; } .dot.amber { background: #f4bf4f; } .dot.green { background: #61c554; }
.terminal-title { margin-left: 10px; font: 12px var(--mono); color: #5b6878; letter-spacing: 0.08em; }
.terminal-body {
  margin: 0; padding: 20px 22px; min-height: 300px;
  font: 15px/1.55 var(--mono); color: #f0a65a;          /* soft orange phosphor */
  text-shadow: 0 0 6px rgba(240,166,90,0.35);
  white-space: pre-wrap;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-bbs { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-bbs .eyebrow { color: var(--blue); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-sub { color: var(--muted); margin: 14px 0 0; font-size: 18px; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  border-top: 3px solid var(--orange);                      /* orange top edge = Windows tools */
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(29,42,58,.06), 0 16px 36px rgba(29,42,58,.10); }
.card-retro { border-top-color: var(--blue); }              /* blue top edge = BBS & retro */
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-tag { font: 600 13px var(--mono); color: var(--orange-dk); margin: 8px 0 14px; letter-spacing: 0.02em; }
.card-retro .card-tag { color: var(--blue); }
.card p { margin: 0 0 16px; color: #3d4a5a; font-size: 15.5px; }
.badge {
  font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
  padding: 4px 8px; border-radius: 6px; background: var(--orange-lt); color: var(--orange-dk); cursor: help;
}
/* "Available" products: green badge + download area */
.badge-available { background: #e3f4e8; color: #23733f; }
.download { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.btn-download { padding: 11px 18px; font-size: 15px; }
.download-notes { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.download-notes:hover { text-decoration: underline; }
.download-meta { flex-basis: 100%; margin: 0 !important; font-size: 13px !important; color: var(--muted) !important; }
.card-retro .badge { background: var(--blue-lt); color: var(--blue); }
.features { list-style: none; padding: 14px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.features li { font-size: 14.5px; color: var(--muted); padding: 3px 0 3px 20px; position: relative; }
.features li::before { content: "›"; position: absolute; left: 4px; color: var(--orange); font-weight: 700; }
.card-retro .features li::before { color: var(--blue); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.about-badge { display: block; width: 200px; height: auto; margin-top: 32px; border-radius: 50%;
  box-shadow: 0 16px 40px rgba(22,58,99,.25); }
.about-copy p { color: #3d4a5a; margin: 0 0 18px; font-size: 18px; }

/* ---------- Contact ---------- */
.section-contact { background: var(--blue-lt); border-top: 1px solid #d6e2ee; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-form { display: grid; gap: 16px; background: #fff; border: 1px solid #d6e2ee; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue-dk); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 16px var(--sans); color: var(--text); background: #fbfcfd;
  border: 1px solid #cfd8e3; border-radius: 8px; padding: 11px 12px; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,107,196,0.15); background: #fff;
}
.contact-form button { justify-self: start; }
.hidden-field { display: none; } /* honeypot spam trap — must stay hidden */

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dk); color: #c9d6e4; padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 26px; width: auto; }
.footer-mono { font-family: var(--mono); letter-spacing: 0.14em; color: #f0a65a; }

/* ---------- Thank-you / 404 pages ---------- */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.thanks p { color: var(--muted); font-size: 18px; margin: 18px 0 30px; }
.thanks img { height: 72px; width: auto; margin-bottom: 18px; }

/* ---------- Tablets ---------- */
@media (max-width: 960px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 4vw 16px;
    box-shadow: 0 12px 24px rgba(29,42,58,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 17px; }
  .site-nav .nav-cta { text-align: center; margin-top: 8px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 72px; }
  .section { padding: 72px 0; }
  .terminal-body { min-height: 260px; font-size: 13.5px; }
}

/* Respect visitors who turn off animations in their OS settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* ---------- DialComm downloads (BBS & Retro card) ---------- */
.card-retro .badge.badge-available { background: #e3f4e8; color: #23733f; }
.dl { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.dl .dl-main { padding: 11px 18px; font-size: 15px; }
.dl-meta { flex-basis: 100%; margin: 4px 0 0 !important; font-size: 13.5px !important; color: var(--muted) !important; line-height: 1.7; }
.dl-meta a { color: var(--blue); text-decoration: none; }
.dl-meta a:hover { text-decoration: underline; }
