/* ============================================================
   Clearsite — styles.css
   ============================================================ */

/* ── Reset & Variables ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:          #0a0a0a;
  --white:          #f5f2ee;
  --accent:         #2979ff;
  --accent2:        #5c9eff;
  --accent3:        #1a56cc;
  --gray:           #1a1a1a;
  --gray2:          #2a2a2a;
  --muted:          #888;
  --font-display:   'Syne', sans-serif;
  --font-body:      'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Shared Section Styles ── */
section {
  padding: 7rem 5vw;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.btn-filled:hover {
  opacity: 0.85;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 5vw 6rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 121, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 121, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 2rem;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  max-width: 44ch;
  font-size: 1.15rem;
  color: rgba(245, 242, 238, 0.6);
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stat-row {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Marquee ── */
.marquee-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--gray);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-track span {
  display: inline-block;
  padding: 0 2.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee-track span.accent {
  color: var(--accent);
}

/* ── Services ── */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.services-intro p {
  font-size: 1.05rem;
  color: rgba(245, 242, 238, 0.6);
  font-weight: 300;
  line-height: 1.75;
  padding-top: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: var(--black);
  padding: 2.5rem;
  transition: background 0.25s;
  cursor: default;
}

.service-card:hover {
  background: var(--gray);
}

.service-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(41, 121, 255, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Process ── */
#process {
  background: var(--gray);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(41, 121, 255, 0.2);
}

.process-step {
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid rgba(41, 121, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Portfolio ── */
#portfolio {
  background: var(--gray);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
}

.portfolio-item {
  background: var(--black);
  padding: 2.5rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 0.25s;
}

.portfolio-item:hover {
  background: #111;
}

.portfolio-item:hover .portfolio-mock {
  opacity: 0.55;
}

.portfolio-mock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
  transition: opacity 0.3s;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.15);
  user-select: none;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.portfolio-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.portfolio-item p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
  position: relative;
  z-index: 1;
}

/* ── Pricing ── */
#pricing {
  background: var(--black);
}

.pricing-intro {
  max-width: 52ch;
  margin-bottom: 4rem;
}

.pricing-intro p {
  font-size: 1.05rem;
  color: rgba(245, 242, 238, 0.55);
  margin-top: 1rem;
  font-weight: 300;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
}

.pricing-card {
  background: var(--black);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.pricing-card.featured {
  background: var(--gray2);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-price sup {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: super;
  letter-spacing: 0;
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.pricing-features li {
  font-size: 0.88rem;
  color: rgba(245, 242, 238, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--accent);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7l3.5 3.5L12 4' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7l3.5 3.5L12 4' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.pricing-features li.muted {
  color: rgba(245, 242, 238, 0.25);
}

.pricing-features li.muted::before {
  background: var(--muted);
}

/* ── Testimonials ── */
#testimonials {
  background: var(--black);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.testimonial-card {
  background: var(--gray);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 0.8;
  display: block;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: rgba(245, 242, 238, 0.75);
  font-style: italic;
  line-height: 1.7;
  font-weight: 300;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.2rem;
  margin-top: auto;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(41, 121, 255, 0.18);
  color: var(--accent2);
}

.author-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
}

.author-info span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── FAQ ── */
#faq {
  background: var(--gray);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 3.5rem;
}

.faq-item {
  background: var(--black);
  padding: 2rem 2.5rem;
}

.faq-item:nth-child(even) {
  background: #111;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
  color: var(--white);
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Contact / CTA ── */
#contact {
  background: var(--black);
  text-align: center;
  padding: 8rem 5vw;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(41, 121, 255, 0.13) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.cta-inner p {
  font-size: 1.1rem;
  color: rgba(245, 242, 238, 0.55);
  max-width: 40ch;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-accent {
  font-style: normal;
  color: var(--accent);
}

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo img {
  height: 24px;
  width: auto;
}

footer p {
  font-size: 0.82rem;
  color: var(--muted);
}

footer ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

footer ul a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer ul a:hover {
  color: var(--white);
}

/* ── Animations ── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag      { animation: fadeUp 0.6s ease forwards; }
h1             { animation: fadeUp 0.6s 0.1s ease both; }
.hero-sub      { animation: fadeUp 0.6s 0.2s ease both; }
.hero-actions  { animation: fadeUp 0.6s 0.3s ease both; }
.hero-stat-row { animation: fadeUp 0.6s 0.4s ease both; }

/* ── Responsive ── */
@media (max-width: 900px) {
  nav ul { display: none; }
  .services-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-grid::before { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .hero-stat-row { gap: 2rem; flex-wrap: wrap; }
}
