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

:root {
  --bg:           #FFFFFF;
  --surface:      #F7F7F7;
  --surface-2:    #F0F0F0;
  --border:       #E8E8E8;
  --border-hover: #D0D0D0;
  --text:         #0C0C0C;
  --text-muted:   #888;
  --purple:       #1800ad;
  --pink:         #ff66c4;
  --accent:       #4a7ff7;
  --accent-dim:   rgba(74, 127, 247, 0.1);
  --accent-hover: rgba(74, 127, 247, 0.18);
  --gradient:     linear-gradient(135deg, #1800ad 0%, #ff66c4 100%);
  --radius:       10px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ============================================
   NAV
   ============================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}

#nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

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

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  background: transparent;
  transition: border-color 0.2s, background 0.2s !important;
}

.nav-cta:hover {
  border-color: var(--accent) !important;
  background: var(--accent-dim) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background 0.2s;
}

.nav-hamburger:hover span {
  background: var(--text);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px 24px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu ul a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu ul a:hover {
  color: var(--text);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}

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

.btn-ghost {
  display: inline-block;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 56px;
  line-height: 1.7;
  margin-top: -8px;
}

h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 52px;
  line-height: 1.15;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 140px 0 100px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

.hero-centered {
  max-width: 720px;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 44px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.05em;
  color: var(--text);
  margin-bottom: 28px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ============================================
   METRICS
   ============================================ */
.metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  padding: 52px 0;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.metric:last-child {
  border-right: none;
}

.metric:hover {
  background: var(--surface);
}

.metric-value {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  font-weight: 500;
}

/* ============================================
   BRANDS / TICKER
   ============================================ */
.brands {
  padding: 112px 0;
  overflow: hidden;
}

.ticker-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-row {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-left 30s linear infinite;
}

.ticker-row--reverse .ticker-track {
  animation: ticker-right 30s linear infinite;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes ticker-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-right: 16px;
  min-width: 180px;
  height: 100px;
  transition: background 0.2s, border-color 0.2s;
}

.ticker-item:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
}

.ticker-item img {
  max-width: 130px;
  max-height: 44px;
  width: auto;
  height: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.25s, filter 0.25s;
}

.ticker-item:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 112px 0;
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 44px;
  transition: background 0.25s;
}

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

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(24, 0, 173, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1800ad;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   BLOG
   ============================================ */
.blog {
  padding: 112px 0;
  border-top: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.2s;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.blog-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff66c4;
  background: rgba(255, 102, 196, 0.08);
  border: 1px solid rgba(255, 102, 196, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 18px;
  align-self: flex-start;
}

.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  flex: 1;
}

.blog-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.blog-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.blog-link:hover {
  opacity: 0.75;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 112px 0;
  border-top: 1px solid var(--border);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-intro h2 {
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 36px;
  line-height: 1.65;
}

.contact-sub a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.contact-sub a:hover {
  opacity: 0.7;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact-details li span:last-child {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}

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

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface-2);
}

.form-success {
  display: none;
  font-size: 14px;
  color: #22c55e;
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 100px 0 72px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo img {
    aspect-ratio: 4 / 3;
    object-position: center 20%;
    max-height: 320px;
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric {
    padding: 36px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .metric:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .metric:nth-child(3),
  .metric:nth-child(4) {
    border-bottom: none;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-item {
    padding: 36px 24px;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  h2 {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================================
   BLOG INDEX
   ============================================ */
.blog-index {
  padding: 140px 0 100px;
}

.blog-index-title {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 52px;
}

.blog-index-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-card--large {
  padding: 36px 40px;
}

.blog-card--large h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--text);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-date {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-footer {
  margin-top: 48px;
  text-align: center;
}

/* ============================================
   BLOG POST
   ============================================ */
.post {
  padding: 140px 0 100px;
}

.post-header {
  max-width: 720px;
  margin: 0 auto 56px;
}

.post-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.post-back:hover {
  color: var(--text);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.blog-card-meta .blog-tag,
.post-meta .blog-tag {
  align-self: center;
  margin-bottom: 0;
}

.post-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

.post-description {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  border-left: 3px solid var(--border);
  padding-left: 20px;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: #222;
}

.post-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 48px 0 16px;
  color: var(--text);
}

.post-body p {
  margin-bottom: 24px;
}

.post-body ul, .post-body ol {
  margin: 0 0 24px 24px;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body strong {
  font-weight: 700;
  color: var(--text);
}

.post-footer {
  max-width: 720px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-muted);
}

.post-footer a {
  color: var(--accent);
  text-decoration: none;
}

.post-footer a:hover {
  text-decoration: underline;
}
