:root {
  --bg: #FAF7F0;
  --bg-alt: #F1ECE0;
  --line: #E2DACA;
  --accent: #D68A3E;
  --accent-dark: #4A2E10;
  --text: #241E14;
  --text-dim: #6B6255;
  --text-faint: #948B7C;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'Inter', Arial, sans-serif;
  line-height: 1.5;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  flex-shrink: 0;
}

.brand span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-dim);
  margin-left: auto;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-dark);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(214, 138, 62, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #D2C7B4;
}

.btn-ghost:hover {
  background: var(--bg-alt);
}

/* Marquee */
.marquee-outer {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scroll 22s linear infinite;
}

.marquee-track span {
  font-size: 32px;
  font-weight: 700;
  color: rgba(36, 30, 20, 0.12);
  padding: 0 24px;
  letter-spacing: 1px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FAF7F0 0%, #FFF5E6 50%, #FAF7F0 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(214, 138, 62, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -150px;
  right: -150px;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(214, 138, 62, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  max-width: 760px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.hero h1 .rotator {
  display: inline-block;
  color: var(--accent);
  transition: opacity 0.25s ease;
}

.hero h1 .brand-highlight {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15em;
  white-space: nowrap;
}

.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* Pain Point */
.pain {
  text-align: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.pain p {
  font-size: 24px;
  font-weight: 500;
  color: #3D3427;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.pain strong {
  color: var(--text);
}

/* Eyebrow */
.eyebrow-center {
  text-align: center;
  font-size: 19px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.service-cell {
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
}

.service-cell:nth-child(3n) {
  border-right: none;
}

.service-cell h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-cell ul {
  list-style: none;
  font-size: 14px;
  color: var(--text-dim);
}

.service-cell li {
  padding: 4px 0;
}

/* Process */
.process-row {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.process-row:last-child {
  border-bottom: 1px solid var(--line);
}

.process-num {
  font-size: 14px;
  color: var(--text-faint);
  width: 32px;
  flex-shrink: 0;
  font-weight: 700;
}

.process-row h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-row p {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 480px;
}

/* Work */
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.work-head span {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.work-card {
  background: var(--accent);
  border-radius: 12px;
  padding: 28px;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.work-card:hover {
  transform: translateY(-8px);
}

.work-card .tag {
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
}

.work-card .name {
  font-size: 22px;
  font-weight: 700;
  color: #0A0A0A;
}

.work-card .brief {
  font-size: 14px;
  color: var(--accent-dark);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.stat-cell {
  background: var(--bg-alt);
  border-right: 1px solid var(--line);
  padding: 36px 24px;
  text-align: center;
}

.stat-cell:last-child {
  border-right: none;
}

.stat-cell .num {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
}

.stat-cell .label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* Testimonial */
.testimonial {
  text-align: center;
}

.testimonial p {
  font-size: 22px;
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.5;
  color: #3D3427;
}

.testimonial .author {
  font-size: 14px;
  color: var(--text-dim);
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 600px;
}

/* Footer */
footer {
  text-align: center;
  padding: 80px 0 56px;
  border-bottom: none;
}

footer h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 720px) {
  .hero h1 {
    font-size: 36px;
  }

  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .service-cell,
  .stat-cell {
    border-right: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .marquee-track span {
    font-size: 20px;
  }

  .pain p {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Contact Form Modal */
.form-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.form-modal:target {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.form-container {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.form-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-close:hover {
  color: var(--accent);
}

.form-container h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.form-container > p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: white;
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.contact-form .btn {
  margin-top: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 12px;
}
