/* ====================================================
   Tech by JSD — Apple-style refined design system
   ==================================================== */
:root {
  --ink:        #1d1d1f;
  --ink-soft:   #424245;
  --muted:      #6e6e73;
  --line:       #d2d2d7;
  --line-soft:  #e8e8ed;
  --bg:         #ffffff;
  --bg-soft:    #fbfbfd;
  --bg-grey:    #f5f5f7;
  --nav-bg:     rgba(255,255,255,0.78);
  --nav-bg-2:   rgba(255,255,255,0.88);
  --shadow:     rgba(0,0,0,0.18);
  --accent:     #0071e3;
  --accent-hov: #0058b8;

  --container: 1120px;
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 28px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --ink:        #f5f5f7;
  --ink-soft:   #c7c7cc;
  --muted:      #86868b;
  --line:       #424245;
  --line-soft:  #2d2d2f;
  --bg:         #000000;
  --bg-soft:    #0a0a0a;
  --bg-grey:    #1d1d1f;
  --nav-bg:     rgba(0,0,0,0.72);
  --nav-bg-2:   rgba(0,0,0,0.86);
  --shadow:     rgba(0,0,0,0.6);
  --accent:     #2997ff;
  --accent-hov: #5dadff;
}

html { background: var(--bg); transition: background-color .3s ease; }
body { transition: background-color .3s ease, color .3s ease; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Typography ============ */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
}

h2 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.07;
}

.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: none;
}

.section-head {
  max-width: 820px;
  margin: 0 auto 76px;
  text-align: center;
}
.section-sub {
  font-size: 22px;
  color: var(--muted);
  margin: 26px auto 0;
  max-width: 680px;
  line-height: 1.5;
}

/* ============ Buttons / links ============ */
.link-primary, .link-secondary, .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  border-radius: 980px;
  padding: 14px 24px;
  transition: background .25s var(--ease-fast), color .25s var(--ease-fast), transform .2s var(--ease);
  white-space: nowrap;
}
.link-primary {
  background: var(--accent);
  color: #fff;
}
.link-primary:hover { background: var(--accent-hov); }
.link-secondary {
  color: var(--accent);
  background: transparent;
  padding-left: 0; padding-right: 0;
}
.link-secondary:hover { color: var(--accent-hov); }

.link-primary.full, .link-secondary.full {
  width: 100%;
  padding: 14px 24px;
}
.link-secondary.full {
  background: transparent;
  border: 1px solid var(--accent);
}
.link-secondary.full:hover {
  background: rgba(0,113,227,0.06);
}

.link-primary.big {
  padding: 18px 38px;
  font-size: 21px;
  font-weight: 500;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line-soft);
  background: var(--nav-bg-2);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: inline-flex; color: var(--ink); }
.nav-logo .logo-svg { height: 42px; width: auto; }
.logo-svg .logo-main { fill: currentColor; }
.logo-svg .logo-dot { fill: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity .2s ease;
}
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cta {
  padding: 8px 16px;
  font-size: 13px;
  background: var(--ink);
  color: var(--bg);
}
.nav-cta:hover { opacity: 0.86; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.theme-toggle:hover {
  background: var(--bg-grey);
  border-color: var(--line);
  transform: rotate(-10deg);
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}

/* ============ Hero ============ */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  background: var(--bg);
}
.hero-h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.03;
  margin: 0 auto;
  max-width: 880px;
}
.hero-heart {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin-left: 0.18em;
  vertical-align: -0.04em;
  transform-origin: center;
  animation: heartbeat 1.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.12); }
  20% { transform: scale(1); }
}
.hero-sub {
  font-size: clamp(20px, 1.9vw, 25px);
  color: var(--muted);
  max-width: 700px;
  margin: 30px auto 0;
  line-height: 1.45;
  font-weight: 400;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============ Feature strip ============ */
.feature-strip {
  background: var(--bg-grey);
  padding: 80px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.strip-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.strip-grid h3 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.024em;
  margin-bottom: 14px;
}
.strip-grid p {
  color: var(--muted);
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  max-width: 340px;
}

/* ============ Work ============ */
.work { padding: 130px 0; background: var(--bg); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  display: block;
  background: var(--bg-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px var(--shadow);
}

.work-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--bg-grey);
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .8s var(--ease);
}
.work-card:hover .work-thumb img { transform: scale(1.04); }

.thumb-1 { background: linear-gradient(135deg, #1d3557 0%, #2d4a73 100%); }
.thumb-2 { background: linear-gradient(135deg, #2c2c2e 0%, #3a3a3c 100%); }
.thumb-3 { background: linear-gradient(135deg, #0071e3 0%, #0058b8 100%); }

.work-meta { padding: 26px 28px 30px; }
.work-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 8px;
}
.work-meta h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 4px;
}
.work-meta p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* ============ Difference ============ */
.difference {
  padding: 130px 0;
  background: var(--bg-grey);
}
.difference-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.difference-inner h2 { margin-bottom: 26px; }
.difference-lede {
  font-size: clamp(20px, 1.9vw, 24px);
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 36px;
  line-height: 1.4;
  letter-spacing: -0.012em;
}
.difference-inner p {
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.difference-inner p:last-child { margin-bottom: 0; }

/* ============ Services ============ */
.services { padding: 130px 0; background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.services-grid .svc:nth-child(1) { grid-column: 1 / span 2; }
.services-grid .svc:nth-child(2) { grid-column: 3 / span 2; }
.services-grid .svc:nth-child(3) { grid-column: 5 / span 2; }
.services-grid .svc:nth-child(4) { grid-column: 2 / span 2; }
.services-grid .svc:nth-child(5) { grid-column: 4 / span 2; }
.svc {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform .4s var(--ease), border-color .3s ease;
}
.svc:hover {
  transform: translateY(-3px);
  border-color: var(--line);
}
.svc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-grey);
  color: var(--ink);
  margin-bottom: 22px;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.svc p {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  font-size: 18px;
}

/* ============ About ============ */
.about { padding: 130px 0; background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.about-portrait {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 110px;
}
.portrait-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-grey);
  box-shadow: 0 30px 60px -30px var(--shadow);
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-copy h2 { margin-bottom: 26px; }
.about-copy p {
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.about-copy em { font-style: italic; color: var(--ink); font-weight: 500; }
.about-signature {
  margin-top: 30px;
  font-size: 22px;
  color: var(--ink);
  font-style: italic;
  font-weight: 500;
}

/* ============ Pricing ============ */
.pricing { padding: 130px 0; background: var(--bg-grey); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: transform .4s var(--ease);
}
.price:hover { transform: translateY(-3px); }
/* .price-featured fully styled by overrides further down (handles both themes) */
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.price header h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.price header p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
}
.price-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.price-num span { color: var(--muted); font-size: 16px; }
.price-num strong {
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.price ul li {
  font-size: 17px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}
.price ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}
/* Featured (dark) card text overrides — placed after generic rules to win cascade */
.price-featured {
  background: #1d1d1f;
  border-color: #1d1d1f;
}
.price.price-featured header h3,
.price.price-featured .price-num strong,
.price.price-featured ul li { color: #ffffff; }
.price.price-featured header p,
.price.price-featured .price-num span { color: rgba(255,255,255,0.78); }
.price.price-featured .price-num { border-color: rgba(255,255,255,0.18); }
.price.price-featured ul li::before { color: var(--accent); }
.price-featured .link-secondary.full,
.price-featured .link-primary.full {
  border-color: rgba(255,255,255,0.2);
}
/* In dark mode the featured card needs to invert to stay distinct */
[data-theme="dark"] .price-featured {
  background: #f5f5f7;
  border-color: #f5f5f7;
}
[data-theme="dark"] .price.price-featured header h3,
[data-theme="dark"] .price.price-featured .price-num strong,
[data-theme="dark"] .price.price-featured ul li { color: #1d1d1f; }
[data-theme="dark"] .price.price-featured header p,
[data-theme="dark"] .price.price-featured .price-num span { color: rgba(0,0,0,0.62); }
[data-theme="dark"] .price.price-featured .price-num { border-color: rgba(0,0,0,0.12); }

/* ============ Reviews ============ */
.reviews { padding: 130px 0; background: var(--bg); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.review {
  margin: 0;
  padding: 36px 8px 0;
  border-top: 1px solid var(--line-soft);
}
.review blockquote {
  margin: 0 0 22px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.012em;
}
.review figcaption {
  font-size: 16px;
  color: var(--muted);
}
.review figcaption span { font-weight: 500; }

/* ============ CTA ============ */
.cta {
  padding: 140px 0;
  background: var(--bg-grey);
  text-align: center;
}
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner > p {
  color: var(--muted);
  font-size: 22px;
  margin: 0 0 12px;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  transition: transform .25s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}
.social-btn:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ============ Footer ============ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: 60px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
}
.footer-brand { color: var(--muted); }
.footer-brand { color: var(--ink); }
.footer-brand .footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
  display: block;
}
.footer-brand p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-cols h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.footer-cols a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color .2s ease;
}
.footer-cols a:hover { color: var(--ink); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero { padding: 80px 0 70px; }
  .feature-strip { padding: 60px 0; }
  .work, .services, .about, .pricing, .reviews, .cta, .difference { padding: 90px 0; }

  .strip-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-thumb { aspect-ratio: 16/10; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .svc:nth-child(n) { grid-column: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-portrait {
    order: -1;
    position: static;
    top: auto;
  }
  .portrait-frame { max-width: 320px; }
  .price-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; gap: 0; }
  .review { padding: 28px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--nav-bg-2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-soft);
    padding: 20px 24px;
    gap: 0;
  }
  .nav.open .nav-links a {
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.open .nav-links a:last-child { border-bottom: none; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; gap: 14px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .cta-socials { flex-wrap: wrap; justify-content: center; }
  .price-num strong { font-size: 36px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
