/* ============================================================
   TirangaHost — Modern Responsive Design System
   Set in Space Grotesk (headings) + Inter (body)
   ============================================================ */

:root {
  --ink:          #12213B;
  --ink-soft:     #1B2F52;
  --saffron:      #F0762B;
  --saffron-dim:  rgba(240, 118, 43, 0.1);
  --green:        #147350;
  --green-dim:    rgba(20, 115, 80, 0.1);
  --cream:        #FAF7F1;
  --paper:        #FFFFFF;
  --line:         #E4DFD3;
  --slate:        #5B6472;
  --slate-dark:   #29303D;

  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius-s: 4px;
  --radius-m: 10px;
  --container: 1120px;
}

* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: var(--font-body);
  color: var(--slate-dark);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Phone par unwanted horizontal scroll ko rokne ke liye */
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--slate); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

/* ---------- Tricolour Hairline ---------- */
.tri-line {
  height: 3px;
  background: linear-gradient(90deg, var(--saffron) 0 33%, #ffffff 33% 66%, var(--green) 66% 100%);
}

/* ---------- Header & Navigation ---------- */
header.site {
  background: var(--ink);
  color: #EFEDE6;
  position: relative;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo .dot { color: var(--saffron); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; 
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: #D7D9E0;
  font-size: .95rem;
  transition: color .15s ease;
}

.nav-links a:hover { color: #fff; }

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Mobile Nav Toggle Button */
.nav-toggle { 
  display: none; 
  background: none; 
  border: 0; 
  color: #fff; 
  font-size: 1.6rem; 
  cursor: pointer;
  padding: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-s);
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--saffron); color: #1A0E05; }
.btn-primary:hover { background: #DA6A22; }
.btn-ghost { background: transparent; color: #fff; border-color: #4a5675; }
.btn-ghost:hover { border-color: #8792ab; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* ---------- Hero Section ---------- */
.hero {
  background: var(--ink);
  color: #EFEDE6;
  padding: 60px 0 80px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--saffron);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  max-width: 18ch;
}

.hero p.lead {
  color: #B9BEC9;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero .cta-row { 
  display: flex; 
  gap: 14px; 
  margin-top: 26px; 
  flex-wrap: wrap; 
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 42px;
  flex-wrap: wrap;
  border-top: 1px solid #2c3c62;
  padding-top: 24px;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: #fff;
}

.hero-stats div span { 
  color: #9AA1B0; 
  font-size: .85rem; 
}

.hero-panel {
  background: var(--ink-soft);
  border: 1px solid #33456e;
  border-radius: var(--radius-m);
  padding: 24px;
}

.hero-panel .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #2c3c62;
  font-size: .92rem;
  gap: 12px;
}

.hero-panel .row:last-child { border-bottom: 0; }
.hero-panel .row span:first-child { color: #9AA1B0; }
.hero-panel .row span:last-child { 
  color: #fff; 
  font-family: var(--font-mono); 
  word-break: break-all;
  text-align: right;
}

/* ---------- Section Formatting ---------- */
section { padding: 70px 0; }

.section-head {
  max-width: 62ch;
  margin-bottom: 42px;
}

.section-head h2 { 
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); 
}

/* ---------- Hosting Plans (Pricing Grid) ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan.popular {
  border: 2px solid var(--saffron);
  box-shadow: 0 12px 30px -14px rgba(240,118,43,.35);
}

.plan-badge {
  position: absolute;
  top: -13px; 
  left: 24px;
  background: var(--saffron);
  color: #1A0E05;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan .tagline { color: var(--slate); font-size: .92rem; margin-bottom: 18px; }

.plan .price {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.plan .price span { 
  font-size: .95rem; 
  color: var(--slate); 
  font-family: var(--font-body); 
  font-weight: 400; 
}

.plan .btn { margin: 18px 0 24px; }

.plan ul {
  list-style: none;
  margin: 0; 
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: .92rem;
  color: var(--slate-dark);
}

.plan ul li { 
  display: flex; 
  gap: 10px; 
  align-items: flex-start; 
}

.plan ul li svg { 
  flex: none; 
  margin-top: 3px; 
  color: var(--green); 
}

/* ---------- Nameservers Section ---------- */
.ns-section { background: var(--ink); color: #EFEDE6; }
.ns-section .section-head h2 { color: #fff; }
.ns-section .section-head p { color: #AEB4C2; }

.ns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.ns-card {
  background: var(--ink-soft);
  border: 1px solid #33456e;
  border-radius: var(--radius-m);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ns-card .ns-label { font-size: .78rem; color: #9AA1B0; margin-bottom: 4px; }
.ns-card .ns-value { font-family: var(--font-mono); color: #fff; font-size: 1rem; word-break: break-all; }

.copy-btn {
  flex: none;
  background: transparent;
  border: 1px solid #4a5675;
  color: #D7D9E0;
  padding: 8px 16px;
  border-radius: var(--radius-s);
  font-size: .85rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .15s ease;
}

.copy-btn:hover { border-color: var(--saffron); color: #fff; }
.copy-btn.copied { border-color: var(--green); color: #4FD8A6; background: rgba(20, 115, 80, 0.2); }

.ns-note { margin-top: 20px; font-size: .85rem; color: #9AA1B0; }

/* ---------- Feature Strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.strip-item {
  border-top: 3px solid var(--green);
  padding-top: 16px;
}

.strip-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.strip-item p { font-size: .9rem; margin: 0; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #AEB4C2;
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-grid h5 {
  color: #fff;
  font-family: var(--font-head);
  font-size: .95rem;
  margin-bottom: 16px;
}

.footer-grid ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  font-size: .88rem; 
}

.footer-grid ul a:hover { color: #fff; }
.footer-brand p { color: #9AA1B0; font-size: .9rem; max-width: 32ch; }

.footer-bottom {
  border-top: 1px solid #2c3c62;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: #7C8496;
}

/* ---------- Responsive Breakpoints (Phone & Tablet) ---------- */
@media (max-width: 992px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .plans { grid-template-columns: 1fr; }
  .ns-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  section { padding: 48px 0; }
  .wrap { padding: 0 16px; }
  
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }

  header.site.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 16px 0 8px;
    gap: 14px;
    border-top: 1px solid #2c3c62;
  }

  header.site.open .nav { flex-wrap: wrap; }
  
  .cta-row { flex-direction: column; width: 100%; }
  .cta-row .btn { width: 100%; }
  
  .hero-stats { justify-content: space-between; gap: 16px; }
}

@media (max-width: 520px) {
  .strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ns-card { flex-direction: column; align-items: flex-start; }
  .copy-btn { width: 100%; margin-top: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}