/* ============================================================
   DNS Advanced — Shared Stylesheet
   Engineer-to-Order. Delivered in Weeks, Not Months.
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --navy: #0A1628;
  --navy-light: #0F2040;
  --blue: #0066FF;
  --copper: #B87333;
  --bg: #F7F8FA;
  --text: #1A1A2E;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --max-width: 1120px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; color: var(--text); }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: clamp(20px, 2.5vw, 24px); line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.4; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.mono { font-family: var(--mono); font-size: 15px; }

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

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: baseline;
}
.nav-logo .dns { color: var(--blue); font-weight: 800; }
.nav-logo .advanced { color: var(--navy); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 14px;
  transition: background 0.15s;
}
.nav-cta:hover { background: #0052CC; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .nav-links, .nav .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}
.btn-primary:hover {
  background: #0052CC;
  border-color: #0052CC;
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--white);
  text-decoration: none;
}
.btn-outline-dark {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-dark:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

/* --- Hero --- */
.hero {
  background: var(--navy);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,102,255,0.06) 39px, rgba(0,102,255,0.06) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,102,255,0.06) 39px, rgba(0,102,255,0.06) 40px);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}
.hero h1 {
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero .subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero .sub-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero .cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Credibility Bar --- */
.cred-bar {
  background: var(--navy-light);
  padding: 32px 0;
}
.cred-bar .stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.cred-stat {
  text-align: center;
  padding: 0 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.cred-stat:last-child { border-right: none; }
.cred-stat .num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
}
.cred-stat .lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .cred-stat {
    flex: 1 1 45%;
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.card-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
}
.card-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* --- Pull Quote --- */
.pull-quote {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}
.pull-quote blockquote {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--white);
  font-weight: 600;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto 16px;
}
.pull-quote cite {
  color: rgba(255,255,255,0.5);
  font-style: normal;
  font-size: 14px;
}

/* --- Problem Statement --- */
.problem h2 { color: var(--navy); }
.problem p { color: var(--text-muted); max-width: 720px; }

/* --- Product Detail (Products page) --- */
.prod-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.prod-section:last-child { border-bottom: none; }
.prod-section h2 {
  color: var(--navy);
  font-size: 30px;
  margin-bottom: 8px;
}
.prod-section .prod-subtitle {
  color: var(--copper);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.prod-section .prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}
.prod-section .prod-grid .intro p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.prod-section h4 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 16px;
}
.prod-section .buyer {
  background: var(--bg);
  border-left: 3px solid var(--blue);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
}
.prod-section .buyer p { font-size: 14px; margin: 0; }

/* --- Specs Table --- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.specs-table th, .specs-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.specs-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.specs-table td {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}
.specs-table tr:nth-child(even) td { background: rgba(247,248,250,0.6); }

@media (max-width: 768px) {
  .prod-section .prod-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Page Header Band --- */
.page-header {
  background: var(--navy);
  padding: 120px 0 64px;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}
.page-header .sub {
  color: rgba(255,255,255,0.65);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Two Column --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* --- Profile Card --- */
.profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.profile-card:last-child { border-bottom: none; }
.profile-placeholder {
  width: 280px;
  height: 320px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.profile-content h3 { margin-bottom: 4px; }
.profile-content .title {
  color: var(--copper);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.profile-content p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text);
}

@media (max-width: 768px) {
  .profile-card { grid-template-columns: 1fr; }
  .profile-placeholder { width: 160px; height: 200px; font-size: 40px; margin: 0 auto; }
}

/* --- Credentials Strip --- */
.creds-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 48px 0;
}
.cred-item {
  text-align: center;
  max-width: 180px;
}
.cred-item .icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.cred-item .title {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 4px;
}
.cred-item .desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Process Steps --- */
.process-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 16px;
}
.process-step h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--navy);
}
.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
}

/* --- FAQ --- */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item h4 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 16px;
}
.faq-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* --- Contact Form --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input[type="file"] {
  padding: 10px;
  font-size: 14px;
}
.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* --- Calendly --- */
.calendly-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
}
.footer h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer a:hover { color: var(--white); }
.footer .logo-text {
  font-size: 20px;
  margin-bottom: 8px;
}
.footer .logo-text .dns { color: var(--blue); font-weight: 800; }
.footer .logo-text .advanced { color: var(--white); font-weight: 400; }
.footer .tagline { font-size: 14px; max-width: 280px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* --- Page spacing (offset for fixed nav) --- */
main { padding-top: 64px; }
.page-header + .section { padding-top: 64px; }

/* DDP highlight box */
.ddp-box {
  background: var(--navy-light);
  border-left: 4px solid var(--copper);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
  color: var(--white);
  font-size: 15px;
  line-height: 1.7;
}
