/* ==========================================================================
   Techrulz — Discord Growth Services
   Global stylesheet
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  --blurple: #5865F2;
  --blurple-dark: #4752c4;
  --blurple-light: #eef0fd;
  --accent-green: #3ba55c;
  --accent-pink: #ed4245;

  --ink: #1a1c23;
  --ink-soft: #4a4e5a;
  --ink-muted: #737989;
  --line: #e6e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-darker: #eef0f6;

  --shadow-sm: 0 1px 2px rgba(16, 18, 28, .06), 0 1px 3px rgba(16, 18, 28, .04);
  --shadow-md: 0 4px 12px rgba(16, 18, 28, .07), 0 2px 4px rgba(16, 18, 28, .04);
  --shadow-lg: 0 18px 40px -12px rgba(16, 18, 28, .18);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --container: 1180px;
  --space: clamp(.9rem, 2.5vw, 1.4rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blurple); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: .35rem; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .6rem; }
p { margin-bottom: 1rem; color: var(--ink-soft); }

/* ----- Layout helpers ----- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.78); }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blurple); background: var(--blurple-light);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 1rem;
}
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.narrow { max-width: 760px; margin: 0 auto; }
.hairline { border: none; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; padding: 14px 26px; border-radius: 100px;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--blurple); color: #fff; box-shadow: 0 8px 20px -6px rgba(88,101,242,.6); }
.btn--primary:hover { background: var(--blurple-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--blurple); border-color: var(--blurple); }
.btn--ghost:hover { background: var(--blurple-light); }
.btn--white { background: #fff; color: var(--blurple); }
.btn--white:hover { color: var(--blurple-dark); }
.btn--lg { font-size: 1.08rem; padding: 17px 34px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--blurple);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .96rem; padding: 8px 12px;
  border-radius: 8px; transition: color .12s ease, background .12s ease;
}
.nav-links a:hover { color: var(--blurple); background: var(--blurple-light); text-decoration: none; }
.nav-cta { margin-left: .6rem; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .16s ease; list-style: none;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .93rem; }
.dropdown a small { display: block; color: var(--ink-muted); font-weight: 400; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.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); }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(88,101,242,.12), transparent 60%),
    radial-gradient(50% 40% at 10% 10%, rgba(235,69,158,.07), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .grad { background: linear-gradient(120deg, var(--blurple), #b06cff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { margin-bottom: 1.8rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 2rem; }
.trust-row .trust { display: flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.trust svg { width: 19px; height: 19px; color: var(--accent-green); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.8rem;
}
.hero-card h3 { margin-bottom: 1.2rem; text-align: center; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.mini-stat { text-align: center; padding: 1rem .5rem; background: var(--bg-soft); border-radius: var(--radius-sm); }
.mini-stat b { display: block; font-size: 1.5rem; color: var(--blurple); }
.mini-stat span { font-size: .78rem; color: var(--ink-muted); }

/* ----- Services grid ----- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blurple); }
.service-card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blurple-light); color: var(--blurple); margin-bottom: 1rem;
}
.service-card .ico svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { font-size: .95rem; margin-bottom: 1.2rem; flex: 1; }
.service-card .price-from { font-size: .85rem; color: var(--ink-muted); margin-bottom: 1rem; }
.service-card .price-from b { color: var(--ink); font-size: 1.15rem; }
.service-card .card-link { font-weight: 700; color: var(--blurple); display: inline-flex; align-items: center; gap: .3rem; }

/* ----- Features grid ----- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.feature { padding: 1.4rem; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blurple-light); color: var(--blurple); margin-bottom: .9rem;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; }
.feature p { font-size: .94rem; }

/* ----- Steps ----- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 1.6rem;
  width: 38px; height: 38px; border-radius: 50%; background: var(--blurple); color: #fff;
  display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-md);
}
.step h3 { margin-top: .6rem; }
.step p { font-size: .95rem; }

/* ----- Pricing ----- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; }
.member-type-toggle { display: inline-flex; gap: .35rem; margin-top: 1.5rem; padding: .35rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.member-type-btn { border: 0; border-radius: 999px; padding: .7rem 1.15rem; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 700; cursor: pointer; transition: .2s; }
.member-type-btn:hover { color: var(--blurple); }
.member-type-btn.active { color: #fff; background: var(--blurple); box-shadow: var(--shadow-sm); }
.member-type-note { max-width: 680px; min-height: 2.8rem; margin: 1rem auto 0; color: var(--ink-soft); font-size: .95rem; }
.member-type-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.member-type-info > div { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.member-type-info h3 { margin-bottom: .3rem; font-size: 1rem; }
.member-type-info p { color: var(--ink-soft); font-size: .9rem; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease;
  display: flex; flex-direction: column; position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card--featured { border: 2px solid var(--blurple); }
.price-card--featured .ribbon {
  position: absolute; top: -12px; right: 18px; background: var(--blurple); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; box-shadow: var(--shadow-md);
}
.price-card .pkg { font-weight: 700; color: var(--ink-muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.price-card .qty { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: .3rem 0 .8rem; }
.price-card .rate { font-size: 2.1rem; font-weight: 800; color: var(--blurple); }
.price-card .rate small { font-size: .9rem; color: var(--ink-muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.price-card ul li { display: flex; align-items: flex-start; gap: .5rem; font-size: .93rem; color: var(--ink-soft); margin-bottom: .6rem; }
.price-card ul svg { width: 17px; height: 17px; color: var(--accent-green); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { margin-top: auto; }

/* ----- Prose (SEO content) ----- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { font-size: 1.04rem; }
.prose ul, .prose ol { margin-bottom: 1.2rem; }
.prose a { font-weight: 600; }
.callout {
  background: var(--blurple-light); border-left: 4px solid var(--blurple);
  padding: 1.2rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.6rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ----- FAQ ----- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 1.1rem 1.3rem;
  font-size: 1.05rem; font-weight: 700; color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: inherit;
}
.faq-q .chev { flex-shrink: 0; width: 20px; height: 20px; color: var(--blurple); transition: transform .2s ease; }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq-a p:last-child { margin-bottom: 0; }

/* ----- Testimonials ----- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.testi .stars { color: #f5a623; letter-spacing: 2px; margin-bottom: .7rem; }
.testi blockquote { font-size: 1rem; color: var(--ink-soft); margin-bottom: 1rem; }
.testi .who { display: flex; align-items: center; gap: .7rem; }
.testi .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--blurple); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testi .who b { display: block; font-size: .92rem; }
.testi .who span { font-size: .8rem; color: var(--ink-muted); }

/* ----- CTA band ----- */
.cta-band { text-align: center; background: linear-gradient(120deg, var(--blurple), #7b5cff); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 600px; margin: 0 auto 1.8rem; }

/* ----- Breadcrumbs ----- */
.breadcrumbs { padding: 1.3rem 0 0; font-size: .88rem; color: var(--ink-muted); }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--blurple); }
.breadcrumbs span[aria-current] { color: var(--ink-soft); font-weight: 600; }

/* ----- Footer ----- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 3.5rem 0 1.8rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255,255,255,.7); font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.footer-about p { font-size: .93rem; color: rgba(255,255,255,.6); max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-bottom .pay { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-bottom .pay span { background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 6px; font-size: .75rem; }

/* ----- Page hero (inner pages) ----- */
.page-hero { padding: 2.5rem 0 1.5rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.page-hero .lead { margin-bottom: 1.6rem; }
.page-hero .btn-row { justify-content: flex-start; }

/* ----- Misc ----- */
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.2rem; }
.tag { font-size: .8rem; font-weight: 600; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: 100px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.guarantee-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 2rem; }
.guarantee { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink-soft); }
.guarantee svg { width: 22px; height: 22px; color: var(--accent-green); }
.notice { background: #fff8e1; border: 1px solid #ffe08a; color: #6b5400; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .95rem; margin: 1.5rem 0; }
.notice p:last-child { margin-bottom: 0; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .member-type-info { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem; gap: .2rem;
    box-shadow: var(--shadow-lg); max-height: calc(100vh - 70px); overflow-y: auto;
    transform: translateY(-130%); transition: transform .26s ease; z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px; }
  .nav-cta { margin: .6rem 0 0; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 0 .8rem; min-width: 0; background: var(--bg-soft); border-radius: 8px; margin-top: .3rem; }
  .has-dropdown .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .mini-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .container { padding: 0 18px; }
}
