/* ===========================
   DAWN CIRCUIT AI — style.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700&family=DM+Sans:wght@400;500&display=swap');

:root {
  --bg: #08090d;
  --bg-card: #111318;
  --bg-card-hover: #171a22;
  --text: #f0ede8;
  --text-muted: #9a97a0;
  --primary: #2C8C96;
  --primary-light: #3aaebb;
  --accent: #F4741F;
  --border: rgba(255,255,255,0.07);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- HEADER ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,9,13,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 100px !important;
  width: 200px !important;
  display: block;
  object-fit: contain;
}

header nav { margin-left: auto; }

header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

header nav a:hover,
header nav a.active { color: var(--text); }

.btn-nav {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-nav:hover { background: var(--primary-light); }

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 100px;
  padding: 0.25rem 0.85rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 40%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(44,140,150,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  color: var(--text-muted);
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
}

/* ---- STATS BAR ---- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.stat {
  flex: 1;
  max-width: 260px;
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- SECTIONS ---- */
.section { padding: 5rem 2rem; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ---- CARDS ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: background 0.2s, border-color 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(44,140,150,0.3);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.footer-brand:hover { color: var(--text); }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  margin-top: 0.5rem;
}

/* ---- NAV (pages using plain <nav>) ---- */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 1rem 2rem;
  background: rgba(8,9,13,0.9);
  border-bottom: 1px solid var(--border);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }

/* ---- CONTACT FORM ---- */
.container h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
}

textarea { resize: vertical; min-height: 140px; }

button[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

button[type="submit"]:hover { background: var(--primary-light); }

/* ---- SOLUTIONS PAGE ---- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  transition: background 0.2s, border-color 0.2s;
}

.solution-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(44,140,150,0.3);
}

.solution-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 0.1rem;
}

.solution-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.solution-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.solution-list li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-left: 1rem;
  position: relative;
}

.solution-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ---- PROCESS STEPS ---- */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.step-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-top: 1rem;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ---- LEGAL PAGES (terms & privacy) ---- */
.legal-body {
  max-width: 720px;
  margin: 0 auto;
}

.legal-body p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-body ul {
  list-style: none;
  margin: 0 0 1.25rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-body ul li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.legal-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.legal-body a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-body a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.legal-table td {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.legal-table tr:last-child td { border-bottom: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .header-inner { padding: 0.75rem 1.25rem; }
  header nav ul { gap: 1rem; }
  .btn-nav { display: none; }
  .stats-bar { flex-direction: column; align-items: center; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); width: 100%; max-width: 100%; }
  .stat:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { margin-left: 0; }
  .solution-card { flex-direction: column; gap: 0.75rem; }
  .step-arrow { display: none; }
  .process-steps { flex-direction: column; align-items: center; }
  .step { max-width: 100%; }
}
