:root {
  --green: #1a6b3c;
  --green-dark: #0f4526;
  --green-light: #e8f5ee;
  --green-mid: #2d9e5f;
  --amber: #d4820a;
  --amber-light: #fef3e2;
  --amber-bright: #f5a623;
  --ink: #1a1a18;
  --ink-mid: #3d3d38;
  --ink-soft: #6b6b63;
  --paper: #f9f8f4;
  --paper-warm: #f2f0e8;
  --white: #ffffff;
  --border: #e2e0d6;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(26,107,60,0.08);
  --shadow-lg: 0 12px 48px rgba(26,107,60,0.14);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 300;
}

/* ── AFFILIATE BAR ── */
.affiliate-bar {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  font-size: 12px;
  padding: 7px 1rem;
  letter-spacing: 0.02em;
}
.affiliate-bar a { color: var(--amber-bright); text-decoration: none; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,248,244,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1160px; margin: 0 auto;
  padding: 0 2rem;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.logo-ranko { color: var(--green); }
.logo-path { color: var(--amber); }

.nav-links {
  list-style: none;
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-mid);
  font-size: 14px; font-weight: 400;
  padding: 6px 14px; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--green-light); color: var(--green); }
.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  font-weight: 500 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--green-dark) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 88vh;
  display: flex; align-items: center;
  background: var(--green-dark);
  position: relative; overflow: hidden;
  padding: 5rem 2rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(45,158,95,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 10% 80%, rgba(245,166,35,0.1) 0%, transparent 50%);
}
.hero-grid {
  position: relative; z-index: 1;
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--amber-bright);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid rgba(245,166,35,0.3);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700; line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--amber-bright); font-style: normal; }
.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.72);
  margin-bottom: 2.25rem; max-width: 480px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-bright); color: var(--ink);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 500; font-size: 15px;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245,166,35,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,166,35,0.45); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 400; font-size: 15px;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.hero-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--amber-bright);
}
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--green-light);
  border-top: 1px solid #c8e8d5;
  border-bottom: 1px solid #c8e8d5;
  padding: 1rem 2rem;
}
.trust-bar-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--green-dark);
}
.trust-item::before { content: '✓'; color: var(--green-mid); font-weight: 700; }

/* ── SECTIONS ── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-alt { background: var(--paper-warm); }
.section-dark { background: var(--green-dark); color: white; }

.section-tag {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green-mid);
  margin-bottom: 0.75rem;
}
.section-dark .section-tag { color: var(--amber-bright); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  color: var(--ink); margin-bottom: 1rem;
}
.section-dark .section-title { color: var(--white); }

.section-sub {
  font-size: 1.05rem; color: var(--ink-soft);
  max-width: 560px; margin-bottom: 3rem;
}
.section-dark .section-sub { color: rgba(255,255,255,0.65); }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 48px; height: 48px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--ink); }
.card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; position: relative; }
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: white;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.4rem; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* ── PRICING CARDS ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: start; }

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border: 2px solid var(--green);
  background: var(--white);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: white;
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em;
  padding: 4px 16px; border-radius: 20px;
  white-space: nowrap;
}
.pricing-name { font-size: 13px; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 700; color: var(--ink);
  margin: 0.5rem 0 0.25rem;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.pricing-desc { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; padding: 6px 0;
  border-bottom: 1px solid var(--paper-warm);
  color: var(--ink-mid);
}
.pricing-features li::before { content: '✓'; color: var(--green-mid); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.btn-green {
  display: block; text-align: center;
  background: var(--green); color: white;
  padding: 13px 24px; border-radius: 10px;
  font-weight: 500; font-size: 15px;
  text-decoration: none; transition: background 0.2s;
}
.btn-green:hover { background: var(--green-dark); }
.btn-green-outline {
  display: block; text-align: center;
  background: transparent; color: var(--green);
  padding: 13px 24px; border-radius: 10px;
  font-weight: 500; font-size: 15px;
  text-decoration: none; border: 1.5px solid var(--green);
  transition: background 0.2s, color 0.2s;
}
.btn-green-outline:hover { background: var(--green); color: white; }

/* ── PORTFOLIO CARD ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.portfolio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portfolio-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.portfolio-info { padding: 1.5rem; }
.portfolio-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-mid);
  background: var(--green-light); padding: 3px 10px;
  border-radius: 20px; display: inline-block; margin-bottom: 0.75rem;
}
.portfolio-info h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.4rem; }
.portfolio-info p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 1rem; }
.portfolio-metrics { display: flex; gap: 1rem; }
.metric { text-align: center; }
.metric .val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--green); }
.metric .lbl { font-size: 11px; color: var(--ink-soft); }

/* ── BLOG CARDS ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumb {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 700;
  font-family: var(--font-display);
  color: white;
}
.blog-body { padding: 1.25rem; }
.cat-badge {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 20px; display: inline-block; margin-bottom: 0.6rem;
}
.cat-ai { background: #eef0ff; color: #4a5abb; }
.cat-hosting { background: var(--green-light); color: var(--green-dark); }
.cat-passive { background: var(--amber-light); color: #7a4a00; }
.cat-wordpress { background: #f0e8ff; color: #6a3d9a; }
.cat-courses { background: #fff0e8; color: #7a3d00; }
.blog-body h3 { font-size: 1rem; font-weight: 500; line-height: 1.45; margin-bottom: 0.5rem; color: var(--ink); }
.blog-meta { font-size: 12px; color: var(--ink-soft); display: flex; gap: 10px; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--green);
  padding: 5rem 2rem; text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: white; margin-bottom: 1rem;
}
.cta-band p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 2rem; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.skills-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.skill-tag {
  background: var(--green-light); color: var(--green-dark);
  font-size: 13px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px;
}

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.25rem; }
.contact-icon { width: 40px; height: 40px; background: var(--green-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.contact-item p { font-size: 14px; color: var(--ink-soft); }
.contact-item strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--ink-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%; padding: 14px;
  background: var(--green); color: white;
  border: none; border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover { background: var(--green-dark); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--green-dark);
  padding: 5rem 2rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: white; margin-bottom: 0.75rem;
}
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ── TESTIMONIAL ── */
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.testimonial-stars { color: var(--amber-bright); font-size: 1rem; margin-bottom: 0.75rem; }
.testimonial-text { font-size: 1rem; color: var(--ink-mid); font-style: italic; line-height: 1.7; margin-bottom: 1rem; }
.testimonial-author { font-weight: 500; font-size: 14px; }
.testimonial-role { font-size: 12px; color: var(--ink-soft); }

/* ── LEGAL PAGES ── */
.legal-content { max-width: 740px; margin: 0 auto; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 2.5rem 0 0.75rem; color: var(--ink); }
.legal-content p, .legal-content li { font-size: 15px; color: var(--ink-mid); line-height: 1.8; margin-bottom: 0.75rem; }
.legal-content ul { padding-left: 1.5rem; }

/* ── FOOTER ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); }
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 4rem 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem;
}
.footer-brand .footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 260px; margin-bottom: 1rem; }
.footer-social a { color: rgba(255,255,255,0.5); text-decoration: none; margin-right: 12px; font-size: 1.1rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--amber-bright); }

.footer-col h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber-bright); }

.payment-badges { display: flex; gap: 8px; margin-top: 1rem; }
.badge {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6);
  font-size: 11px; font-weight: 500; padding: 4px 12px;
  border-radius: 4px; border: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom-inner {
  max-width: 1160px; margin: 0 auto; padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom-inner p { font-size: 12.5px; color: rgba(255,255,255,0.4); }
.footer-legal { list-style: none; display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 12.5px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── NOTICE / ALERT ── */
.notice {
  background: var(--amber-light); border-left: 4px solid var(--amber-bright);
  padding: 1rem 1.25rem; border-radius: 0 8px 8px 0;
  font-size: 14px; color: #5a3600; margin: 1.5rem 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--border); padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin: 0.5rem 0 0; }
  .nav-toggle { display: flex; }
  .section { padding: 4rem 1.25rem; }
  .hero { padding: 3.5rem 1.25rem; min-height: auto; }
  .hero-btns { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s ease 0.15s both; }
.fade-up-3 { animation: fadeUp 0.6s ease 0.3s both; }
