/* ===================================================================
   The Coder Trick — Homepage v2
   Standalone stylesheet, purple/violet brand theme (independent of style.css)
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --v2-primary: #5809D4;
  --v2-primary-2: #7C3AED;
  --v2-primary-dark: #4604AC;
  --v2-ink: #0B0B12;
  --v2-ink-soft: #3F3A52;
  --v2-muted: #6B6580;
  --v2-bg: #FFFFFF;
  --v2-bg-soft: #F6F3FD;
  --v2-bg-deep: #0B0B12;
  --v2-border: #E7E1F7;
  --v2-white: #FFFFFF;
  --v2-success: #16A34A;
  --v2-error: #DC2626;
  --v2-radius: 20px;
  --v2-shadow-sm: 0 2px 10px rgba(11,11,18,.06);
  --v2-shadow-md: 0 16px 40px -16px rgba(88,9,212,.28);
  --v2-shadow-lg: 0 24px 60px -20px rgba(88,9,212,.35);
  --v2-gradient: linear-gradient(135deg, #5809D4 0%, #7C3AED 55%, #9D5CFF 100%);
  --v2-gradient-dark: linear-gradient(135deg, #4604AC 0%, #5809D4 100%);

  /* keep script.js's header-scroll effect (references var(--card)) working */
  --card: #FFFFFF;
}

body.v2-body {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  background: var(--v2-bg);
  color: var(--v2-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.v2-body img { max-width: 100%; display: block; }
.v2-body a { color: inherit; text-decoration: none; }
.v2-body button { font: inherit; cursor: pointer; border: none; }
/* Low-specificity (element-only) defaults so any .v2-btn-*/.v2-icon-btn class can
   override background/color without a specificity fight against the reset above. */
button { background: transparent; color: inherit; }
.v2-body ul { list-style: none; }
.v2-body p, .v2-body li, .v2-body span, .v2-body a, .v2-body h1, .v2-body h2, .v2-body h3, .v2-body h4 { overflow-wrap: break-word; }

/* Flex/grid children default to min-width:auto (content-based), which can force a
   row wider than its container when a child holds unbreakable text (nowrap words,
   URLs). Reset the floor on every flex/grid item pattern used on this page so rows
   shrink to the viewport instead of overflowing it. */
.v2-topbar-row > *,
.v2-header-row > *,
.v2-hero-grid > *,
.v2-intro-grid > *,
.v2-process-track > *,
.v2-integration-nodes > *,
.v2-mock-products > *,
.v2-mock-sitenav > *,
.v2-mock-topbar > *,
.v2-form-grid > *,
.v2-footer-grid > *,
.v2-hero-buttons > *,
.v2-cta-buttons > *,
.v2-audit-form > * {
  min-width: 0;
}
.v2-body h1, .v2-body h2, .v2-body h3, .v2-body h4, .v2-body h5 {
  font-family: "Sora", "Manrope", ui-sans-serif, sans-serif;
  line-height: 1.2;
}
.v2-body i.fa-solid, .v2-body i.fa-regular, .v2-body i.fa-brands { line-height: 1; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* ===== Top announcement bar ===== */
.v2-topbar { background: var(--v2-ink); color: #ffffffcc; font-size: .8rem; }
.v2-topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.v2-topbar-contact { display: none; align-items: center; gap: 1.25rem; font-weight: 600; }
.v2-topbar-contact a { transition: color .2s; }
.v2-topbar-contact a:hover { color: #fff; }
.v2-topbar-contact i { color: #b794f6; margin-right: .35rem; }
@media (min-width: 768px) { .v2-topbar-contact { display: flex; } }
.v2-topbar-tagline { flex: 1; text-align: center; font-weight: 600; color: #ffffffe6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-topbar-social { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.v2-topbar-social a { transition: color .2s; }
.v2-topbar-social a:hover { color: #b794f6; }

/* ===== Scroll-reveal animation ===== */
@media (prefers-reduced-motion: no-preference) {
  .v2-reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
  .v2-reveal.v2-in { opacity: 1; transform: translateY(0); }

  @keyframes v2-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  .v2-mock-phone { animation: v2-float 5s ease-in-out infinite; }

  @keyframes v2-pulse { 0%, 100% { box-shadow: 0 8px 22px -8px rgba(88,9,212,.55); } 50% { box-shadow: 0 10px 30px -6px rgba(88,9,212,.8); } }
  .v2-hero-buttons .v2-btn-primary { animation: v2-pulse 2.8s ease-in-out infinite; }
}

/* ===== Header ===== */
.v2-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v2-border);
  transition: background .35s ease, box-shadow .35s ease;
}
.v2-header.v2-scrolled .v2-header-row { padding: .55rem 0; }
.v2-header.v2-scrolled .v2-brand-logo { width: 2.15rem; height: 2.15rem; }
@media (min-width: 768px) { .v2-header.v2-scrolled .v2-brand-logo { width: 2.3rem; height: 2.3rem; } }
.v2-header-row { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: 1rem; transition: padding .3s ease; }

.v2-brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.v2-brand-logo { width: 2.4rem; height: 2.4rem; border-radius: .6rem; overflow: hidden; transition: width .3s ease, height .3s ease; }
.v2-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 768px) { .v2-brand-logo { width: 2.7rem; height: 2.7rem; } }
.v2-brand-name { font-family: "Sora", sans-serif; font-size: .92rem; font-weight: 700; letter-spacing: .01em; color: var(--v2-ink); display: block; }
.v2-brand-name strong { color: var(--v2-primary); }
.v2-brand-tag { font-size: .68rem; color: var(--v2-muted); font-weight: 600; }
.v2-brand-tag em { color: var(--v2-primary); font-style: normal; }
@media (min-width: 768px) { .v2-brand-name { font-size: 1.05rem; } }

.v2-nav-links { display: none; align-items: center; gap: 1.4rem; }
@media (min-width: 1100px) { .v2-nav-links { display: flex; } }
.v2-nav-link { font-weight: 600; font-size: .88rem; position: relative;background: #fff; color: var(--v2-ink-soft); transition: color .25s; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.v2-nav-link.active, .v2-nav-link:hover { color: var(--v2-primary); }

.v2-nav-dropdown-wrap { position: relative; }
.v2-nav-dropdown-trigger .nav-chevron { font-size: .65rem; transition: transform .25s; }
.v2-nav-dropdown-wrap.open .nav-chevron { transform: rotate(180deg); }
.v2-nav-dropdown {
  display: none; position: absolute; top: calc(100% + .9rem); left: 50%; transform: translateX(-50%);
  min-width: 15.5rem; padding: .5rem; flex-direction: column; gap: .1rem;
  border-radius: 1rem; background: var(--v2-white); border: 1px solid var(--v2-border);
  box-shadow: var(--v2-shadow-md); z-index: 60;
}
.v2-nav-dropdown-wrap.open .v2-nav-dropdown { display: flex; }
.v2-nav-dropdown-link { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-radius: .6rem; font-weight: 600; font-size: .87rem; color: var(--v2-ink-soft); transition: background .2s, color .2s; white-space: nowrap; }
.v2-nav-dropdown-link i { width: 1.1rem; color: var(--v2-primary); text-align: center; }
.v2-nav-dropdown-link:hover { background: var(--v2-bg-soft); color: var(--v2-primary); }

.v2-header-actions { display: flex; align-items: center; gap: .85rem; flex-shrink: 0; }
.hide-mobile { display: none !important; }
@media (min-width: 640px) { .hide-mobile { display: inline-flex !important; } }
.show-mobile { display: flex !important; }
@media (min-width: 1100px) { .show-mobile { display: none !important; } }

.v2-icon-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--v2-bg-soft); border: 1px solid var(--v2-border); color: var(--v2-ink); transition: transform .25s, background .25s;
}
.v2-icon-btn:hover { transform: scale(1.08); background: var(--v2-primary); color: #fff; }

.v2-mobile-nav { display: none; flex-direction: column; gap: .3rem; padding: 1rem 1.25rem 1.5rem; background: var(--v2-white); border-top: 1px solid var(--v2-border); }
.v2-mobile-nav.open { display: flex; }
.v2-mobile-nav .v2-nav-link { padding: .5rem 0; }
.v2-mobile-nav .v2-btn { margin-top: .5rem; }
.v2-mobile-nav-group { display: flex; flex-direction: column; }
.v2-mobile-nav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.v2-mobile-nav-toggle .nav-chevron { transition: transform .25s; font-size: .7rem; }
.v2-mobile-nav-group.open .nav-chevron { transform: rotate(180deg); }
.v2-mobile-nav-submenu { display: none; flex-direction: column; gap: .2rem; padding: .25rem 0 .5rem 1rem; border-left: 1px solid var(--v2-border); margin-left: .25rem; }
.v2-mobile-nav-group.open .v2-mobile-nav-submenu { display: flex; }
.v2-mobile-nav-submenu .v2-nav-link { font-size: .85rem; padding: .4rem 0; }

/* ===== Buttons ===== */
.v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .8rem; font-weight: 700; white-space: nowrap; transition: all .25s; }
.v2-btn span { display: inline-flex; align-items: center; gap: .6rem; }
.v2-btn-primary { background: var(--v2-gradient); color: #fff; padding: 0 1.35rem; height: 2.7rem; font-size: .88rem; box-shadow: 0 8px 22px -8px rgba(88,9,212,.55); }
.v2-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(88,9,212,.65); }
.v2-btn-outline { background: var(--v2-white); color: var(--v2-primary); border: 1.5px solid var(--v2-border); padding: 0 1.35rem; height: 2.7rem; font-size: .88rem; }
.v2-btn-outline:hover { border-color: var(--v2-primary); transform: translateY(-2px); }
.v2-btn-lg { padding: 0 2.25rem; height: 3.4rem; font-size: 1.02rem; border-radius: 1rem; }
@media (min-width: 768px) { .v2-btn-lg { padding: 0 2.6rem; height: 3.6rem; } }

/* ===== Layout helpers ===== */
main { }
.v2-section { padding: 4rem 0; position: relative; }
@media (min-width: 768px) { .v2-section { padding: 5.5rem 0; } }
.v2-section-soft { background: var(--v2-bg-soft); }
.v2-section-head { text-align: center; margin-bottom: 2.75rem; max-width: 46rem; margin-left: auto; margin-right: auto; }
.v2-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: var(--v2-bg-soft); border: 1px solid var(--v2-border); color: var(--v2-primary); font-weight: 700; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.v2-eyebrow-light { background: #ffffff26; border-color: #ffffff40; color: #fff; }
.v2-section-head h2 { font-size: 1.85rem; font-weight: 800; margin-bottom: .9rem; letter-spacing: -.01em; }
.v2-section-head p { font-size: 1.05rem; color: var(--v2-muted); line-height: 1.6; }
@media (min-width: 768px) { .v2-section-head h2 { font-size: 2.35rem; } .v2-section-head p { font-size: 1.15rem; } }

.v2-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .v2-grid { gap: 1.75rem; } }
.v2-grid-2 { grid-template-columns: 1fr; }
.v2-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .v2-grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .v2-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .v2-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.v2-mb-lg { margin-bottom: 2.75rem; }

.v2-card {
  min-width: 0;
  background: var(--v2-white); border: 1px solid var(--v2-border); border-radius: var(--v2-radius);
  box-shadow: var(--v2-shadow-sm); transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.v2-card:hover { transform: translateY(-4px); box-shadow: var(--v2-shadow-md); }

.v2-card-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 700; font-size: .88rem; color: var(--v2-primary); transition: gap .2s; }
.v2-card-link:hover { gap: .8rem; }

.v2-link-cta { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.5rem; font-weight: 700; color: var(--v2-primary); transition: gap .2s; }
.v2-link-cta:hover { gap: .9rem; }

/* ===== Hero ===== */
.v2-hero { position: relative; padding: 3rem 0; overflow: hidden; background: var(--v2-bg); }
@media (min-width: 768px) { .v2-hero { padding: 4.5rem 0; } }
.v2-hero-shape {
  position: absolute; top: -12rem; right: -14rem; width: 34rem; height: 34rem; border-radius: 40%;
  background: var(--v2-gradient); opacity: .12; filter: blur(10px); z-index: 0; transform: rotate(20deg);
}
.v2-hero-dots {
  position: absolute; top: 2rem; left: -1rem; width: 12rem; height: 12rem; z-index: 0; opacity: .5;
  background-image: radial-gradient(var(--v2-border) 1.6px, transparent 1.6px); background-size: 14px 14px;
}
.v2-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .v2-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 2.5rem; } }
.v2-hero-inner { min-width: 0; }

.v2-hero-title { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 1.1rem; color: var(--v2-ink); }
.v2-hero-title .v2-hero-accent {
  background: var(--v2-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (min-width: 768px) { .v2-hero-title { font-size: 2.6rem; } }
@media (min-width: 1280px) { .v2-hero-title { font-size: 3rem; } }

.v2-hero-sub { font-size: 1.05rem; color: var(--v2-muted); max-width: 34rem; margin-bottom: 2rem; line-height: 1.65; }
@media (min-width: 768px) { .v2-hero-sub { font-size: 1.15rem; } }

.v2-hero-buttons { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 2rem; }
@media (min-width: 560px) { .v2-hero-buttons { flex-direction: row; } }

.v2-hero-checklist { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.v2-hero-checklist li { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: var(--v2-ink-soft); }
.v2-hero-checklist i { color: var(--v2-primary); }

/* Hero visual: concept storefront mockup */
.v2-hero-visual { position: relative; min-width: 0; }
.v2-mock-badge {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .9rem; padding: .35rem .8rem;
  border-radius: 999px; background: var(--v2-bg-soft); border: 1px solid var(--v2-border);
  font-size: .72rem; font-weight: 700; color: var(--v2-muted);
}
.v2-mock-browser {
  border-radius: 1.25rem; overflow: hidden; background: #fff; border: 1px solid var(--v2-border);
  box-shadow: var(--v2-shadow-lg);
}
.v2-mock-topbar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: #F1EEFA; border-bottom: 1px solid var(--v2-border); }
.v2-mock-dot { width: .55rem; height: .55rem; border-radius: 999px; background: #D8CFF2; }
.v2-mock-url { margin-left: .6rem; font-size: .7rem; color: var(--v2-muted); background: #fff; border-radius: .4rem; padding: .15rem .6rem; }
.v2-mock-sitenav { display: flex; align-items: center; gap: 1.1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--v2-border); }
.v2-mock-logo { font-family: "Sora", sans-serif; font-weight: 800; font-size: .95rem; letter-spacing: .05em; color: var(--v2-primary); }
.v2-mock-navlink { flex: 1; max-width: 3.2rem; height: .5rem; border-radius: 999px; background: var(--v2-border); }
.v2-mock-cart { margin-left: auto; color: var(--v2-ink); }
.v2-mock-banner {
  margin: 1rem; padding: 1.6rem 1.25rem; border-radius: .9rem; background: var(--v2-gradient); color: #fff;
  display: flex; flex-direction: column; gap: .3rem;
}
.v2-mock-banner span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.v2-mock-banner em { font-style: normal; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.15rem; }
.v2-mock-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding: 0 1rem 1.1rem; }
.v2-mock-product { display: flex; flex-direction: column; gap: .4rem; }
.v2-mock-thumb { width: 100%; aspect-ratio: 1; border-radius: .65rem; }
.thumb-1 { background: linear-gradient(135deg,#E9E3FB,#C9B8F5); }
.thumb-2 { background: linear-gradient(135deg,#FBE3EF,#F5B8D8); }
.thumb-3 { background: linear-gradient(135deg,#E3F1FB,#B8D8F5); }
.v2-mock-product span { display: block; height: .4rem; width: 70%; border-radius: 999px; background: var(--v2-border); }
.v2-mock-product b { font-size: .8rem; font-weight: 800; color: var(--v2-ink); }

.v2-mock-phone {
  position: absolute; right: -1rem; bottom: -1.75rem; width: 8.5rem; padding: .6rem;
  border-radius: 1.4rem; background: #fff; border: 6px solid var(--v2-ink); box-shadow: var(--v2-shadow-lg);
  display: none;
}
@media (min-width: 640px) { .v2-mock-phone { display: block; } }
.v2-mock-phone-notch { width: 2.2rem; height: .3rem; border-radius: 999px; background: var(--v2-ink); margin: 0 auto .5rem; }
.v2-mock-phone-nav { display: flex; align-items: center; justify-content: space-between; font-size: .65rem; margin-bottom: .5rem; }
.v2-mock-phone-nav .v2-mock-logo { font-size: .65rem; }
.v2-mock-phone-banner { height: 2.6rem; border-radius: .5rem; background: var(--v2-gradient); margin-bottom: .5rem; }
.v2-mock-phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.v2-mock-phone-grid div { aspect-ratio: 1; border-radius: .4rem; background: var(--v2-bg-soft); border: 1px solid var(--v2-border); }

/* ===== Platform trust bar ===== */
.v2-platformbar { padding: 2rem 0; border-top: 1px solid var(--v2-border); border-bottom: 1px solid var(--v2-border); background: var(--v2-bg-soft); }
.v2-platformbar-label { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-muted); margin-bottom: 1.25rem; }
.v2-platformbar-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; }
.v2-platform-badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1.15rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--v2-border); font-weight: 700; font-size: .88rem; color: var(--v2-ink);
}
.v2-platform-badge i { color: var(--v2-primary); font-size: 1.1rem; }
.v2-platform-badge img { height: 1.35rem; width: auto; object-fit: contain; }

/* ===== Ecosystem / Connected commerce ===== */
.v2-eco-cta { text-align: center; margin-top: 1.75rem; }
.v2-eco-divider { border: none; border-top: 1px dashed var(--v2-border); margin: 2.75rem 0; }
.v2-eco-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 640px) { .v2-eco-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .v2-eco-grid { grid-template-columns: repeat(3, 1fr); } }
.v2-eco-item {
  display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--v2-border);
  border-radius: .9rem; padding: 1rem 1.15rem; font-weight: 700; font-size: .92rem; color: var(--v2-ink);
  transition: transform .25s, box-shadow .25s;
}
.v2-eco-item:hover { transform: translateY(-3px); box-shadow: var(--v2-shadow-md); }
.v2-eco-item i {
  width: 2.1rem; height: 2.1rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center;
  background: var(--v2-bg-soft); color: var(--v2-primary); font-size: 1rem; flex-shrink: 0;
}

/* ===== Intro ===== */
.v2-intro-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .v2-intro-grid { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; } }
.v2-intro-grid h2 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.01em; }
@media (min-width: 768px) { .v2-intro-grid h2 { font-size: 2.3rem; } }
.v2-intro-lead { font-size: 1.2rem; font-weight: 700; color: var(--v2-ink); margin-bottom: 1rem; }
.v2-intro-grid p { color: var(--v2-muted); line-height: 1.7; margin-bottom: 1rem; font-size: 1.02rem; }

/* ===== Services ===== */
.v2-service-card { padding: 1.75rem; }
@media (min-width: 768px) { .v2-service-card { padding: 2.1rem; } }
.v2-service-icon { width: 3.25rem; height: 3.25rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 1.15rem; background: var(--v2-gradient); box-shadow: 0 8px 20px -8px rgba(88,9,212,.5); font-size: 1.3rem; }
.v2-service-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .6rem; }
.v2-service-card p { color: var(--v2-muted); line-height: 1.6; font-size: .93rem; }

/* ===== Platform cards ===== */
.v2-platform-card { padding: 1.9rem; }
@media (min-width: 768px) { .v2-platform-card { padding: 2.25rem; } }
.v2-platform-card-icon { width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.15rem; font-size: 1.5rem; color: #fff; }
.icon-shopify { background: linear-gradient(135deg,#95BF47,#5EBB6B); }
.icon-woo { background: linear-gradient(135deg,#7F54B3,#5D3A94); }
.icon-bigcommerce { background: linear-gradient(135deg,#17161A,#3A3742); }
.icon-magento { background: linear-gradient(135deg,#F26322,#C94A0F); }
.v2-platform-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .6rem; }
.v2-platform-card p { color: var(--v2-muted); line-height: 1.6; font-size: .95rem; }

/* ===== What we can build ===== */
.v2-build-item { padding: 1.75rem; position: relative; overflow: hidden; }
.v2-build-num { position: absolute; top: 1rem; right: 1.25rem; font-size: 2.4rem; font-weight: 800; color: var(--v2-primary); opacity: .12; font-family: "Sora", sans-serif; }
.v2-build-icon { width: 3rem; height: 3rem; border-radius: .85rem; display: flex; align-items: center; justify-content: center; background: var(--v2-bg-soft); color: var(--v2-primary); margin-bottom: 1rem; font-size: 1.2rem; }
.v2-build-item h3 { font-size: 1.05rem; font-weight: 800; }

/* ===== Business problems ===== */
.v2-problem-grid { align-items: stretch; }
.v2-problem-item { padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }
.v2-problem-icon { width: 2.75rem; height: 2.75rem; border-radius: .8rem; display: flex; align-items: center; justify-content: center; background: var(--v2-bg-soft); color: var(--v2-primary); flex-shrink: 0; font-size: 1.05rem; }
.v2-problem-item h4 { font-size: 1rem; font-weight: 800; margin-bottom: .35rem; }
.v2-problem-item p { color: var(--v2-muted); font-size: .9rem; line-height: 1.55; }

/* ===== Process ===== */
.v2-process-track { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .v2-process-track { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .v2-process-track { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }
.v2-process-step { background: #fff; border: 1px solid var(--v2-border); border-radius: 1.1rem; padding: 1.4rem 1.15rem; position: relative; }
.v2-process-num { display: block; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--v2-primary); margin-bottom: .6rem; }
.v2-process-step h4 { font-size: .98rem; font-weight: 800; margin-bottom: .4rem; }
.v2-process-step p { font-size: .85rem; color: var(--v2-muted); line-height: 1.5; }

/* ===== Why us ===== */
.v2-why-card { padding: 1.75rem; }
.v2-why-icon { width: 3rem; height: 3rem; border-radius: .85rem; display: flex; align-items: center; justify-content: center; background: var(--v2-gradient); color: #fff; margin-bottom: 1.1rem; font-size: 1.15rem; }
.v2-partner-badge { height: 2.6rem; width: auto; max-width: 100%; object-fit: contain; margin-bottom: 1.1rem; }
.v2-why-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .5rem; }
.v2-why-card p { color: var(--v2-muted); font-size: .92rem; line-height: 1.6; }

/* ===== Partner carousel (single-line infinite marquee) ===== */
.v2-partner-carousel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.v2-partner-track { display: flex; flex-wrap: nowrap; gap: 1.5rem; width: max-content; animation: v2-partner-scroll 40s linear infinite; }
.v2-partner-carousel:hover .v2-partner-track { animation-play-state: paused; }
.v2-partner-slide { flex: 0 0 300px; max-width: 300px; }
@keyframes v2-partner-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - .75rem)); } }
@media (prefers-reduced-motion: reduce) {
  .v2-partner-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .v2-partner-slide[aria-hidden="true"] { display: none; }
}

/* ===== Training track cards ===== */
.v2-track-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 640px) { .v2-track-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .v2-track-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.v2-track-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--v2-white); border: 1px solid var(--v2-border); border-radius: var(--v2-radius);
  box-shadow: var(--v2-shadow-sm); padding: 1.9rem 1.6rem;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
}
.v2-track-card:hover { transform: translateY(-6px); box-shadow: var(--v2-shadow-md); }
.v2-track-card.is-featured { border-color: var(--v2-primary); box-shadow: var(--v2-shadow-md); }
.v2-track-flag {
  position: absolute; top: -.8rem; left: 1.6rem; background: var(--v2-gradient); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; box-shadow: var(--v2-shadow-sm);
}
.v2-track-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.v2-track-icon {
  width: 3rem; height: 3rem; border-radius: .85rem; display: flex; align-items: center; justify-content: center;
  background: var(--v2-gradient); color: #fff; font-size: 1.2rem;
}
.v2-track-duration {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 800;
  color: var(--v2-primary); background: var(--v2-bg-soft); border: 1px solid var(--v2-border);
  padding: .35rem .7rem; border-radius: 999px; white-space: nowrap;
}
.v2-track-name { font-size: 1.2rem; font-weight: 800; margin-bottom: .5rem; }
.v2-track-summary { color: var(--v2-muted); font-size: .92rem; line-height: 1.6; }
.v2-track-divider { height: 1px; background: var(--v2-border); margin: 1.3rem 0; }
.v2-track-label {
  font-size: .72rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--v2-ink-soft); margin-bottom: .8rem;
}
.v2-track-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.6rem; }
.v2-track-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--v2-ink-soft); line-height: 1.5; }
.v2-track-list i { color: var(--v2-primary); margin-top: .2rem; flex-shrink: 0; font-size: .82rem; }
.v2-track-cta { width: 100%; margin-top: auto; }
.v2-field-pulse { border-color: var(--v2-primary) !important; box-shadow: 0 0 0 4px rgba(88,9,212,.15); transition: box-shadow .3s; }

/* ===== Integration diagram ===== */
.v2-integration-diagram { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.v2-integration-hub {
  display: inline-flex; align-items: center; gap: .65rem; padding: 1.1rem 2rem; border-radius: 1.2rem;
  background: var(--v2-gradient); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: var(--v2-shadow-md);
}
.v2-integration-hub i { font-size: 1.2rem; }
.v2-integration-nodes {
  width: 100%; max-width: 56rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem;
  position: relative; padding-top: 1.5rem; border-top: 2px dashed var(--v2-border);
}
@media (min-width: 640px) { .v2-integration-nodes { grid-template-columns: repeat(3, 1fr); } }
.v2-integration-node {
  display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; border-radius: .85rem;
  background: #fff; border: 1px solid var(--v2-border); font-weight: 700; font-size: .88rem; color: var(--v2-ink-soft);
}
.v2-integration-node i { color: var(--v2-primary); font-size: 1.05rem; width: 1.2rem; text-align: center; }

/* ===== Free audit ===== */
.v2-audit-section { background: var(--v2-gradient); color: #fff; }
.v2-audit-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
.v2-audit-inner h2 { font-size: 1.85rem; font-weight: 800; margin-bottom: 1rem; }
@media (min-width: 768px) { .v2-audit-inner h2 { font-size: 2.35rem; } }
.v2-audit-inner p { font-size: 1.05rem; opacity: .92; line-height: 1.65; margin-bottom: 2rem; }
.v2-audit-form { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
@media (min-width: 560px) { .v2-audit-form { flex-direction: row; } }
.v2-audit-form input {
  flex: 1; font: inherit; padding: .95rem 1.15rem; border-radius: .8rem; border: 1.5px solid #ffffff40;
  background: #ffffff1a; color: #fff; outline: none;
}
.v2-audit-form input::placeholder { color: #ffffffb3; }
.v2-audit-form input:focus { border-color: #fff; }
.v2-audit-form .v2-btn-primary { background: #fff; color: var(--v2-primary); flex-shrink: 0; }
.v2-audit-form .v2-btn-primary:hover { background: #f4f0ff; }
.v2-audit-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; font-size: .88rem; font-weight: 600; opacity: .95; }
.v2-audit-checks i { margin-right: .4rem; }

/* ===== FAQ ===== */
.v2-faq-list { max-width: 52rem; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.v2-faq-item { background: #fff; border: 1px solid var(--v2-border); border-radius: 1rem; overflow: hidden; }
.v2-faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; text-align: left; font-weight: 700; font-size: .98rem; color: var(--v2-ink);
}
.v2-faq-question i { color: var(--v2-primary); transition: transform .25s; flex-shrink: 0; }
.v2-faq-item.open .v2-faq-question i { transform: rotate(180deg); }
.v2-faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.v2-faq-item.open .v2-faq-answer { max-height: 20rem; }
.v2-faq-answer p { padding: 0 1.4rem 1.2rem; color: var(--v2-muted); line-height: 1.65; font-size: .92rem; }

/* ===== CTA card ===== */
.v2-cta-card { padding: 2.75rem 1.5rem; max-width: 58rem; margin: 0 auto; text-align: center; background: var(--v2-gradient); border-radius: 1.75rem; color: #fff; box-shadow: var(--v2-shadow-lg); }
@media (min-width: 768px) { .v2-cta-card { padding: 3.75rem; } }
.v2-cta-card h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
@media (min-width: 768px) { .v2-cta-card h2 { font-size: 2.2rem; } }
.v2-cta-card p { font-size: 1rem; opacity: .92; margin-bottom: 2rem; line-height: 1.6; max-width: 38rem; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .v2-cta-card p { font-size: 1.1rem; } }
.v2-cta-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 560px) { .v2-cta-buttons { flex-direction: row; } }
.v2-cta-card .v2-btn-primary { background: #fff; color: var(--v2-primary); box-shadow: 0 8px 22px -8px rgba(0,0,0,.3); }
.v2-cta-card .v2-btn-primary:hover { background: #f4f0ff; }
.v2-cta-card .v2-btn-outline { background: transparent; color: #fff; border-color: #ffffff55; }
.v2-cta-card .v2-btn-outline:hover { border-color: #fff; }

/* ===== Footer ===== */
.v2-footer { padding: 3.5rem 0 2rem; background: var(--v2-bg-deep); color: #ffffffcc; }
.v2-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.v2-footer-grid-5 { }
@media (min-width: 700px) { .v2-footer-grid-5 { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1024px) { .v2-footer-grid-5 { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.v2-footer-brand { margin-bottom: .9rem; }
.v2-footer-logo { width: 2.5rem; height: 2.5rem; }
.v2-footer-brand-name { color: #fff; font-size: 1rem; }
.v2-footer-grid h4 { font-weight: 800; font-size: .92rem; margin-bottom: 1rem; color: #fff; }
.v2-footer-links { display: flex; flex-direction: column; gap: .65rem; font-size: .87rem; }
.v2-footer-links a, .v2-footer-links button, .v2-footer-links span { background: #000; color: #ffffffb3; font-weight: 600; transition: color .25s; text-align: left; }
.v2-footer-links a:hover, .v2-footer-links button:hover { color: #fff; }
.v2-footer-links i { width: 1rem; margin-right: .3rem; color: #b794f6; }
.v2-footer-audit-btn { margin-top: 1.1rem; }
.v2-muted-small { font-size: .85rem; color: #ffffffb3; }
.v2-social-row { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.v2-social-row .v2-icon-btn { width: 2.15rem; height: 2.15rem; background: #ffffff14; border-color: #ffffff26; color: #fff; }
.v2-social-row.on-light .v2-icon-btn { background: var(--v2-bg-soft); border-color: var(--v2-border); color: var(--v2-ink); }
.v2-footer-sep { height: 1px; background: #ffffff1f; margin-bottom: 1.75rem; }
.v2-footer-bottom { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
@media (min-width: 768px) { .v2-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.v2-footer-legal { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: #ffffff99; }
.v2-footer-legal a { color: #ffffffb3; transition: color .25s; }
.v2-footer-legal a:hover { color: #fff; }

/* ===== Modal ===== */
.v2-modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(11,11,18,.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 1.5rem; }
.v2-modal-overlay.open { display: flex; }
.v2-modal-box { position: relative; width: 100%; max-width: 34rem; max-height: 90vh; overflow-y: auto; padding: 2rem; background: #fff; border-radius: 1.5rem; box-shadow: var(--v2-shadow-lg); }
@media (min-width: 768px) { .v2-modal-box { padding: 2.5rem; } }
.v2-modal-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; padding-right: 2rem; }
.v2-modal-subtitle { margin-bottom: 1.5rem; color: var(--v2-muted); }
.v2-modal-close { position: absolute; top: 1rem; right: 1rem; }
.v2-form-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .v2-form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.v2-form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.v2-form-field label { font-size: .85rem; font-weight: 700; }
.v2-form-field input, .v2-form-field textarea, .v2-form-field select {
  font: inherit; color: var(--v2-ink); background: var(--v2-bg-soft); border: 1.5px solid var(--v2-border);
  border-radius: .65rem; padding: .65rem .8rem; outline: none; transition: border-color .2s;
}
.v2-form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6580' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem; padding-right: 2.4rem; }
.v2-form-field textarea { resize: vertical; min-height: 7rem; }
.v2-form-field input:focus, .v2-form-field textarea:focus, .v2-form-field select:focus { border-color: var(--v2-primary); }
.v2-modal-box .v2-btn { width: 100%; }
.v2-form-alert { padding: .9rem 1.1rem; border-radius: .75rem; margin-bottom: 1.25rem; font-size: .9rem; line-height: 1.5; }
.v2-form-alert-success { background: #16a34a1a; border: 1px solid #16a34a4d; color: #15803d; }
.v2-form-alert-error { background: #dc26261a; border: 1px solid #dc26264d; color: #b91c1c; }

/* ===== Inline field validation (jQuery-driven) ===== */
.v2-form-field.has-error input, .v2-form-field.has-error textarea, .v2-form-field.has-error select {
  border-color: var(--v2-error); background: #dc26260d;
}
.v2-field-error { color: var(--v2-error); font-size: .8rem; font-weight: 600; }

/* ===== Stats row (About page) ===== */
.v2-stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2.75rem; }
@media (min-width: 768px) { .v2-stats-row { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.v2-stat-card { text-align: center; padding: 1.75rem 1rem; }
.v2-stat-number {
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 2.1rem; margin-bottom: .35rem;
  background: var(--v2-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (min-width: 768px) { .v2-stat-number { font-size: 2.5rem; } }
.v2-stat-label { font-size: .82rem; font-weight: 700; color: var(--v2-muted); }

/* ===== Mission / Vision cards ===== */
.v2-mission-card { padding: 2rem; }
@media (min-width: 768px) { .v2-mission-card { padding: 2.5rem; } }
.v2-mission-card h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.v2-mission-card p { color: var(--v2-muted); line-height: 1.7; margin-bottom: 1rem; font-size: .98rem; }
.v2-mission-card p:last-child { margin-bottom: 0; }

/* ===== Blog index ===== */
.v2-blog-card { padding: 1.75rem; display: flex; flex-direction: column; height: 100%; }
.v2-blog-category {
  display: inline-flex; align-items: center; width: fit-content; padding: .3rem .75rem; border-radius: 999px;
  background: var(--v2-bg-soft); border: 1px solid var(--v2-border); color: var(--v2-primary);
  font-weight: 700; font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 1rem;
}
.v2-blog-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .6rem; line-height: 1.35; }
.v2-blog-card p { color: var(--v2-muted); font-size: .93rem; line-height: 1.6; margin-bottom: 1.1rem; flex: 1; }
.v2-blog-meta { display: flex; align-items: center; gap: .9rem; font-size: .78rem; font-weight: 700; color: var(--v2-muted); margin-bottom: 1rem; }
.v2-blog-meta i { color: var(--v2-primary); margin-right: .3rem; }

/* ===== Article body (blog posts) ===== */
.v2-article-hero { padding: 2.5rem 0 1rem; }
@media (min-width: 768px) { .v2-article-hero { padding: 3.5rem 0 1.5rem; } }
.v2-article-hero-inner { max-width: 46rem; margin: 0 auto; }
.v2-article-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 1.1rem; color: var(--v2-ink); }
@media (min-width: 768px) { .v2-article-title { font-size: 2.4rem; } }
.v2-article-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; font-size: .85rem; font-weight: 700; color: var(--v2-muted); }
.v2-article-meta-row i { color: var(--v2-primary); margin-right: .35rem; }
.v2-article-body { max-width: 46rem; margin: 0 auto; }
.v2-article-body h2 { font-size: 1.4rem; font-weight: 800; margin: 2.5rem 0 1rem; letter-spacing: -.01em; }
.v2-article-body h3 { font-size: 1.12rem; font-weight: 800; margin: 1.75rem 0 .75rem; }
.v2-article-body p { color: var(--v2-ink-soft); line-height: 1.75; margin-bottom: 1.25rem; font-size: 1.02rem; }
.v2-article-body ul { list-style: disc; margin: 0 0 1.25rem 1.35rem; color: var(--v2-ink-soft); line-height: 1.75; font-size: 1.02rem; }
.v2-article-body ol { list-style: decimal; margin: 0 0 1.25rem 1.35rem; color: var(--v2-ink-soft); line-height: 1.75; font-size: 1.02rem; }
.v2-article-body ul ul, .v2-article-body ol ol { margin-top: .5rem; margin-bottom: 0; }
.v2-article-body li { margin-bottom: .5rem; }
.v2-article-body li strong, .v2-article-body p strong { color: var(--v2-ink); }
.v2-article-body a { color: var(--v2-primary); font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.v2-article-callout {
  background: var(--v2-bg-soft); border-left: 4px solid var(--v2-primary); border-radius: .9rem;
  padding: 1.25rem 1.5rem; margin: 1.75rem 0;
}
.v2-article-callout p { margin-bottom: 0; }
.v2-article-callout p + p { margin-top: .75rem; }
.v2-article-back { display: flex; width: fit-content; align-items: center; gap: .5rem; font-weight: 700; color: var(--v2-primary); margin-bottom: 1.5rem; }
.v2-article-share { display: flex; align-items: center; gap: .75rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--v2-border); }
.v2-article-share span { font-size: .85rem; font-weight: 700; color: var(--v2-muted); }

/* ===== Hire-a-developer page form ===== */
.v2-hire-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .v2-hire-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.v2-hire-form-card { padding: 1.75rem; }
@media (min-width: 768px) { .v2-hire-form-card { padding: 2.25rem; } }
.v2-hire-form-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.v2-hire-form-card .v2-muted-small { color: var(--v2-muted); margin-bottom: 1.5rem; }
.v2-hire-form-card .v2-btn { width: 100%; }

.v2-check-list { display: flex; flex-direction: column; gap: .8rem; }
.v2-check-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .97rem; color: var(--v2-ink-soft); line-height: 1.5; }
.v2-check-list i { color: var(--v2-primary); margin-top: .25rem; flex-shrink: 0; }

.v2-lead-text { color: var(--v2-muted); line-height: 1.65; margin-bottom: 1.5rem; font-size: 1.02rem; }
