/* ============================================
   THE DIPIETRO GROUP — Premium Creative Services
   ============================================ */

/* ---- TOKENS ---- */
:root {
  --bg:        #07090f;
  --surface:   #0e1320;
  --card:      #141928;
  --card-alt:  #192036;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.13);
  --text:      #e8eaf2;
  --muted:     #8891a8;
  --accent:    #ff5533;
  --accent-glow: rgba(255,85,51,0.18);
  --accent-2:  #5b6ef5;
  --accent-2-glow: rgba(91,110,245,0.15);
  --success:   #22d3a0;
  --tag-bg:    rgba(91,110,245,0.1);
  --tag-text:  #8899ff;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TOP NAV ---- */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7,9,15,0.82);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { background: #e64d2e; box-shadow: 0 4px 16px var(--accent-glow); }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .top-nav { padding: 0 20px; }
}

/* ---- HERO ---- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(255,85,51,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(91,110,245,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(91,110,245,0.2);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  max-width: 780px;
  margin: 0 auto 20px;
  color: var(--text);
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #ff5533, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: #e64d2e;
  box-shadow: 0 8px 28px rgba(255,85,51,0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid var(--border-hi);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: rgba(255,255,255,0.2);
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ---- SERVICES STRIP ---- */
.services-strip {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-strip h2 {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 40px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
}
.service-card.write  .service-icon { background: rgba(255,85,51,0.12); }
.service-card.image .service-icon { background: rgba(91,110,245,0.12); }
.service-card.video .service-icon { background: rgba(34,211,160,0.12); }
.service-card.audio .service-icon { background: rgba(255,200,50,0.12); }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.service-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .services-grid { grid-template-columns: 1fr; } }

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- PRICING ---- */
.pricing-section {
  padding: 100px 0;
}
.pricing-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.pricing-tab {
  padding: 10px 24px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  background: transparent;
  color: var(--muted);
}
.pricing-tab.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.pricing-tab:hover:not(.active) { color: var(--text); }

.pricing-category { display: none; }
.pricing-category.active { display: block; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tier-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s;
}
.tier-card:hover { border-color: var(--border-hi); }
.tier-card.featured {
  border-color: rgba(255,85,51,0.35);
  background: linear-gradient(160deg, var(--card), rgba(255,85,51,0.03));
}
.tier-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 100px;
}
.tier-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tier-price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}
.tier-price sup {
  font-size: 1.2rem;
  font-weight: 700;
  vertical-align: super;
}
.tier-price .per { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.tier-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}
.tier-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier-features li {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tier-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.btn-buy {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-buy:hover {
  background: #e64d2e;
  box-shadow: 0 4px 16px rgba(255,85,51,0.25);
}
.btn-buy.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-buy.secondary:hover {
  background: var(--card-alt);
  box-shadow: none;
}
@media (max-width: 900px) {
  .tier-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ---- COMBOS ---- */
.combos-section {
  padding: 100px 0;
  background: var(--surface);
}
.combo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.combo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}
.combo-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.combo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,85,51,0.2);
  margin-bottom: 20px;
}
.combo-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.combo-price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.combo-price .per {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.combo-desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.combo-services {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.combo-tag {
  background: var(--card-alt);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
}
.combo-savings {
  background: rgba(34,211,160,0.08);
  border: 1px solid rgba(34,211,160,0.2);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
}
.combo-cta {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.combo-cta:hover {
  background: #e64d2e;
  box-shadow: 0 4px 16px rgba(255,85,51,0.3);
}
@media (max-width: 900px) { .combo-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ---- PROCESS ---- */
.process-section {
  padding: 100px 0;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 12%; right: 12%;
  height: 1px;
  background: var(--border);
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 16px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 768px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  padding: 100px 0;
  background: var(--surface);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}
.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}
.testimonial-name { font-weight: 600; font-size: 0.875rem; }
.testimonial-role { font-size: 0.75rem; color: var(--muted); }
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* ---- CONTACT FORM ---- */
.contact-section {
  padding: 100px 0;
}
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}
input, select, textarea {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 100px; }
select { cursor: pointer; }
.form-row { margin-top: 16px; }
.btn-submit {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.btn-submit:hover {
  background: #e64d2e;
  box-shadow: 0 4px 16px rgba(255,85,51,0.25);
}
.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ---- FINAL CTA ---- */
.final-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,85,51,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
}
.final-cta p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .hero-actions { justify-content: center; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
footer a { color: var(--muted); transition: color 0.15s; }
footer a:hover { color: var(--text); }

/* ---- SCROLL SMOOTH OFFSET ---- */
section[id] { scroll-margin-top: 72px; }