/*
Theme Name: SnapTech
Theme URI: https://example.com/snaptech
Author: Your Name
Author URI: https://example.com
Description: A sharp, modern tech company WordPress theme with dark hero, clean sections, and bold typography.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snaptech
Tags: technology, startup, business, dark, modern, one-page
*/

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg:        #09090b;
  --clr-surface:   #131316;
  --clr-border:    #27272a;
  --clr-text:      #fafafa;
  --clr-muted:     #a1a1aa;
  --clr-accent:    #6366f1;
  --clr-accent-hi: #818cf8;
  --clr-green:     #22c55e;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --ff-display:    'Space Grotesk', 'Segoe UI', sans-serif;
  --ff-body:       'Inter', system-ui, sans-serif;
  --ff-mono:       'JetBrains Mono', 'Fira Code', monospace;
  --max-w:         1200px;
  --transition:    0.2s ease;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--clr-muted); line-height: 1.8; }

.text-accent { color: var(--clr-accent-hi); }
.section-label {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent-hi);
  display: inline-block;
  margin-bottom: 1rem;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--clr-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--clr-accent-hi); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn-ghost:hover { border-color: var(--clr-accent); color: var(--clr-accent-hi); }

/* ===========================
   NAVIGATION
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(20px);
  border-color: var(--clr-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-text);
}
.site-logo span { color: var(--clr-accent-hi); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-size: 0.9rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}
.nav-menu a:hover { color: var(--clr-text); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

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

/* ===========================
   HERO
=========================== */
.hero {
  padding: 10rem 0 7rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99,102,241,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(34,197,94,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--clr-accent-hi);
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--clr-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
}
.hero-sub {
  max-width: 560px;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 4rem;
}
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--clr-muted);
}
.avatar-stack {
  display: flex;
}
.avatar-stack img,
.avatar-stack .avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--clr-bg);
  margin-right: -10px;
  background: var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ===========================
   LOGOS / TRUSTED BY
=========================== */
.logos-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.logos-bar p {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--clr-muted);
}
.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
}
.logo-item {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--clr-border);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.logo-item:hover { color: var(--clr-muted); }

/* ===========================
   FEATURES
=========================== */
.features {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section-header h2 { margin-bottom: 1rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--clr-accent);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; color: var(--clr-text); }
.feature-card p { font-size: 0.9rem; }

/* ===========================
   STATS
=========================== */
.stats {
  padding: 5rem 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item .number {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-item .number span { color: var(--clr-accent-hi); }
.stat-item .label {
  font-size: 0.9rem;
  color: var(--clr-muted);
  font-family: var(--ff-mono);
}

/* ===========================
   HOW IT WORKS
=========================== */
.how-it-works {
  padding: 6rem 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  position: relative;
}
.step {
  padding: 2rem;
  position: relative;
}
.step-number {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--clr-accent-hi);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.step h3 { margin-bottom: 0.75rem; color: var(--clr-text); }
.step p { font-size: 0.9rem; }
.step::after {
  content: '→';
  position: absolute;
  right: -0.5rem;
  top: 2.5rem;
  color: var(--clr-border);
  font-size: 1.25rem;
}
.step:last-child::after { display: none; }

/* ===========================
   PRICING
=========================== */
.pricing {
  padding: 6rem 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.pricing-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  transition: border-color var(--transition);
}
.pricing-card.featured {
  border-color: var(--clr-accent);
  background: rgba(99,102,241,0.05);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan-name {
  font-size: 0.85rem;
  font-family: var(--ff-mono);
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.plan-price {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
  color: var(--clr-text);
}
.plan-price sup {
  font-size: 1.2rem;
  vertical-align: super;
  color: var(--clr-muted);
}
.plan-price .per {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--clr-muted);
}
.plan-desc {
  font-size: 0.85rem;
  margin: 0.75rem 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--clr-border);
}
.plan-features {
  margin-bottom: 2rem;
}
.plan-features li {
  font-size: 0.875rem;
  color: var(--clr-muted);
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.plan-features li::before {
  content: '✓';
  color: var(--clr-green);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials {
  padding: 6rem 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}
.testimonial-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.testimonial-card:hover { border-color: var(--clr-accent); }
.stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--clr-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: normal;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}
.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text);
}
.author-title {
  font-size: 0.8rem;
  color: var(--clr-muted);
}

/* ===========================
   FAQ
=========================== */
.faq {
  padding: 6rem 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}
.faq-list {
  max-width: 720px;
  margin: 4rem auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--clr-border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--clr-muted);
  transition: all var(--transition);
}
.faq-item.open .faq-icon {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
}
.faq-answer p { font-size: 0.95rem; }

/* ===========================
   CTA BANNER
=========================== */
.cta-banner {
  padding: 6rem 0;
}
.cta-inner {
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(99,102,241,0.05) 100%);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner p { max-width: 500px; margin: 0 auto 2rem; font-size: 1rem; }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.875rem;
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--clr-muted);
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--clr-accent); color: var(--clr-accent-hi); }
.footer-col h4 {
  font-size: 0.8rem;
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-muted);
  margin-bottom: 1.25rem;
}
.footer-col ul li + li { margin-top: 0.75rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--clr-text); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--clr-muted);
}

/* ===========================
   WORDPRESS SPECIFIC
=========================== */
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 0 auto 1rem; display: block; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .step::after { display: none; }
  .cta-inner { padding: 2.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 8rem 0 5rem; }
  .hero-social-proof { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}
