/* ============================================
   JUNE STUDIO - Summer Soft UI
   ============================================ */

:root {
  --sun-yellow:    #FFD86B;
  --sun-orange:    #FFB347;
  --peach:         #FFCBA4;
  --coral:         #FF8C69;
  --sky-light:     #FFF9EE;
  --sky-mid:       #FFF4DC;
  --sky-warm:      #FFEAC5;
  --white:         #FFFFFF;
  --text-dark:     #2D1B00;
  --text-mid:      #6B4E1A;
  --text-soft:     #A07850;
  --border:        rgba(255, 180, 80, 0.2);
  --shadow-warm:   0 4px 30px rgba(255, 160, 60, 0.12);
  --shadow-glow:   0 8px 40px rgba(255, 200, 80, 0.25);
  --radius-sm:     10px;
  --radius-md:     18px;
  --radius-lg:     28px;
  --radius-xl:     40px;
  --font-main:     'Plus Jakarta Sans', sans-serif;
  --font-display:  'Playfair Display', serif;
  --transition:    0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── CHAT THEME CUSTOM PROPERTIES (enables gradient colour transitions) ── */
@property --ct-h1    { syntax: '<color>'; inherits: true; initial-value: #FF9A40; }
@property --ct-h2    { syntax: '<color>'; inherits: true; initial-value: #FFD86B; }
@property --ct-bot   { syntax: '<color>'; inherits: true; initial-value: #FFEAC5; }
@property --ct-u1    { syntax: '<color>'; inherits: true; initial-value: #FF9A40; }
@property --ct-u2    { syntax: '<color>'; inherits: true; initial-value: #FFD86B; }
@property --ct-text  { syntax: '<color>'; inherits: true; initial-value: #2D1B00; }

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--sky-light);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── CONTAINER ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 { line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-family: var(--font-display); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-family: var(--font-display); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
em { font-style: italic; color: var(--coral); }

.gradient-text {
  background: linear-gradient(135deg, #FF8C40 0%, #FFB347 50%, #FFD86B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, #FF9A40 0%, #FFD86B 100%);
  color: var(--text-dark);
  box-shadow: 0 6px 24px rgba(255, 160, 60, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 160, 60, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text-mid);
  border: 2px solid rgba(160, 100, 30, 0.45);
}
.btn--ghost:hover {
  background: var(--sky-warm);
  border-color: var(--sun-orange);
  color: var(--text-dark);
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--sun-orange);
}
.btn--outline:hover {
  background: var(--sun-yellow);
  transform: translateY(-2px);
}

/* ── PILL BADGE ── */
.pill {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 216, 107, 0.4), rgba(255, 179, 71, 0.25));
  border: 1px solid rgba(255, 179, 71, 0.35);
  color: #C06000;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.pill--dark {
  background: rgba(45, 27, 0, 0.08);
  border-color: rgba(45, 27, 0, 0.15);
  color: var(--text-dark);
}

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section__sub {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ========================================
   NAV
   ======================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 249, 238, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-warm); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-sun-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  animation: spin-slow 8s linear infinite;
  overflow: visible;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav__links a { color: var(--text-mid); transition: color 0.2s; }
.nav__links a:hover { color: var(--text-dark); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: rgba(255, 249, 238, 0.98);
}
.nav__mobile a {
  padding: 12px 0;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.nav__mobile.open { display: flex; }

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: radial-gradient(ellipse at 60% 0%, #FFF5D0 0%, #FFF9EE 60%, #FFEFD8 100%);
}

.hero__blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #FFD86B 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: float1 10s ease-in-out infinite;
}
.blob--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #FFCBA4 0%, transparent 70%);
  bottom: 0; left: -80px;
  animation: float2 12s ease-in-out infinite;
}
.blob--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #FFB347 0%, transparent 70%);
  top: 50%; left: 50%;
  animation: float3 14s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-30px,40px) scale(1.1)} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(40px,-30px) scale(1.05)} }
@keyframes float3 { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-55%,-45%) scale(0.9)} }

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 60px 0 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 179, 71, 0.4);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero__headline {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero__sub {
  max-width: 520px;
  color: var(--text-soft);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat__num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 500;
  margin-top: 4px;
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ========================================
   SERVICE CARDS
   ======================================== */
.services { background: var(--white); }

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

.card {
  background: var(--sky-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF9A40, #FFD86B);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.card:hover::before { opacity: 1; }

.card--glow:hover { box-shadow: 0 12px 48px rgba(255, 180, 60, 0.2); }

.card--featured {
  background: linear-gradient(160deg, #FFF6E0 0%, #FFF9EE 100%);
  border-color: rgba(255, 200, 80, 0.45);
  box-shadow: 0 4px 32px rgba(255, 200, 80, 0.15);
}
.card--featured:hover { box-shadow: 0 16px 52px rgba(255, 180, 60, 0.3); }

.card__badge {
  position: absolute;
  top: 20px; right: 20px;
  background: linear-gradient(135deg, #FF9A40, #FFD86B);
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.card__icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 20px; }

.card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.card__list li::before { content: '✦ '; color: var(--sun-orange); font-size: 0.7rem; }

/* ========================================
   AI SECTION
   ======================================== */
.ai-section {
  background: linear-gradient(160deg, #FFF9EE 0%, #FFFBF0 100%);
}
.ai-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Chat Demo */
.chat-demo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  max-width: 400px;
  margin: 0 auto;

  /* Theme colour variables - default (Agency) */
  --ct-h1:   #FF9A40;
  --ct-h2:   #FFD86B;
  --ct-bot:  #FFEAC5;
  --ct-u1:   #FF9A40;
  --ct-u2:   #FFD86B;
  --ct-text: #2D1B00;

  /* Smooth cross-theme gradient animation via @property */
  transition: --ct-h1 0.55s ease, --ct-h2 0.55s ease, --ct-bot 0.55s ease,
              --ct-u1 0.55s ease, --ct-u2 0.55s ease, --ct-text 0.55s ease;
}

/* Trades / Blue Collar */
.chat-demo[data-theme="trade"] {
  --ct-h1:   #1a2f4e;
  --ct-h2:   #2d62a0;
  --ct-bot:  #e8eff8;
  --ct-u1:   #d45f10;
  --ct-u2:   #f09030;
  --ct-text: #ffffff;
}
/* Beauty & Wellness */
.chat-demo[data-theme="beauty"] {
  --ct-h1:   #a03368;
  --ct-h2:   #d07898;
  --ct-bot:  #fce8f0;
  --ct-u1:   #a03368;
  --ct-u2:   #d07898;
  --ct-text: #ffffff;
}
/* Dining / Restaurant */
.chat-demo[data-theme="food"] {
  --ct-h1:   #6a1515;
  --ct-h2:   #b03030;
  --ct-bot:  #fdf3e7;
  --ct-u1:   #6a1515;
  --ct-u2:   #b03030;
  --ct-text: #ffffff;
}
/* Health / Medical */
.chat-demo[data-theme="health"] {
  --ct-h1:   #0a6b6b;
  --ct-h2:   #18a89e;
  --ct-bot:  #e4f6f5;
  --ct-u1:   #0a6b6b;
  --ct-u2:   #18a89e;
  --ct-text: #ffffff;
}

.chat-demo__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--ct-h1) 0%, var(--ct-h2) 100%);
}
.chat-demo__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.chat-demo__name   { font-weight: 700; font-size: 0.95rem; color: var(--ct-text); }
.chat-demo__status { font-size: 0.75rem; color: var(--ct-text); opacity: 0.65; }

.chat-demo__messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.msg {
  display: flex;
  max-width: 80%;
}
.msg span {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
}
.msg--bot { align-self: flex-start; }
.msg--bot span {
  background: var(--ct-bot);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}
.msg--user { align-self: flex-end; flex-direction: row-reverse; }
.msg--user span {
  background: linear-gradient(135deg, var(--ct-u1), var(--ct-u2));
  color: var(--text-dark);
  border-bottom-right-radius: 4px;
}
/* On dark-header themes the user bubble text needs to be light */
.chat-demo[data-theme="food"]   .msg--user span,
.chat-demo[data-theme="health"] .msg--user span,
.chat-demo[data-theme="beauty"] .msg--user span { color: #fff; }
/* Custom brand theme — text colors set dynamically via JS */
.chat-demo[data-theme="custom"] .msg--user span,
.chat-demo[data-theme="custom"] .chat-demo__input button { color: var(--ct-user-text, #fff); }

.chat-demo__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.chat-demo__input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 0.875rem;
  background: var(--sky-light);
  outline: none;
}
.chat-demo__input button {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ct-u1), var(--ct-u2));
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.chat-demo[data-theme="food"]   .chat-demo__input button,
.chat-demo[data-theme="health"] .chat-demo__input button,
.chat-demo[data-theme="beauty"] .chat-demo__input button { color: #fff; }
.chat-demo__input button:hover  { transform: scale(1.08); }
.chat-demo__input button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── URL Personalizer ── */
.url-personalizer {
  max-width: 400px;
  margin: 0 auto 14px;
  text-align: center;
}
.url-personalizer__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.url-personalizer__label em { color: var(--sun-orange); font-style: normal; font-weight: 800; }
.url-personalizer__form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.url-personalizer__input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.url-personalizer__input:focus {
  outline: none;
  border-color: var(--sun-orange);
  box-shadow: 0 0 0 3px rgba(255,154,64,0.15);
}
.url-personalizer__btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--sun-orange), var(--sun-yellow));
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all 0.2s;
}
.url-personalizer__btn:hover   { transform: translateY(-1px); box-shadow: var(--shadow-warm); }
.url-personalizer__btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.url-personalizer__state {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.url-state__reset {
  background: none;
  border: none;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 4px;
}
.url-personalizer__or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.url-personalizer__or::before,
.url-personalizer__or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Theme Buttons (fallback industry themes) ── */
.theme-switcher__btns {
  display: flex;
  gap: 7px;
  justify-content: center;
  flex-wrap: wrap;
}
.theme-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  min-width: 58px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.22s ease;
}
.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
  border-color: var(--sun-orange);
}
.theme-btn__icon  { font-size: 1.15rem; line-height: 1; }
.theme-btn__label { font-size: 0.68rem; font-weight: 700; color: var(--text-soft); white-space: nowrap; }

/* Active states - each theme gets its own colour */
.theme-btn.active[data-theme="default"] {
  background: linear-gradient(135deg, #FF9A40, #FFD86B);
  border-color: #FF9A40;
}
.theme-btn.active[data-theme="default"] .theme-btn__label { color: var(--text-dark); }

.theme-btn.active[data-theme="trade"] {
  background: linear-gradient(135deg, #1a2f4e, #2d62a0);
  border-color: #2d62a0;
}
.theme-btn.active[data-theme="trade"] .theme-btn__label { color: #fff; }

.theme-btn.active[data-theme="beauty"] {
  background: linear-gradient(135deg, #a03368, #d07898);
  border-color: #a03368;
}
.theme-btn.active[data-theme="beauty"] .theme-btn__label { color: #fff; }

.theme-btn.active[data-theme="food"] {
  background: linear-gradient(135deg, #6a1515, #b03030);
  border-color: #6a1515;
}
.theme-btn.active[data-theme="food"] .theme-btn__label { color: #fff; }

.theme-btn.active[data-theme="health"] {
  background: linear-gradient(135deg, #0a6b6b, #18a89e);
  border-color: #0a6b6b;
}
.theme-btn.active[data-theme="health"] .theme-btn__label { color: #fff; }

/* ── Try It Out hint ── */
.try-it-hint {
  pointer-events: none; /* annotation only - must not block taps */
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-left: 56px;    /* visually aligns arrow toward the input */
  color: var(--coral);
  animation: try-hint 2.6s ease-in-out infinite;
}
.try-it-hint__arrow {
  width: 26px;
  height: 32px;
  flex-shrink: 0;
  transform: scaleX(-1);  /* flip so arrow curves toward input */
}
.try-it-hint__text {
  font-weight: 800;
  font-size: 0.88rem;
  font-style: italic;
  letter-spacing: 0.02em;
}
@keyframes try-hint {
  0%, 100% { opacity: 1;   transform: translateY(0); }
  50%       { opacity: 0.55; transform: translateY(-6px); }
}

/* ── AI section chat typing dots ── */
.ai-chat-typing {
  padding: 2px 20px 12px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.ai-chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ct-u1);
  opacity: 0.55;
  animation: typing-dot 1.2s ease-in-out infinite;
}
.ai-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

/* AI content */
.ai-section__content .pill { margin-bottom: 16px; }
.ai-section__content h2 { margin-bottom: 16px; }
.ai-section__content > p { color: var(--text-soft); margin-bottom: 32px; line-height: 1.7; }

.feature-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,216,107,0.3), rgba(255,179,71,0.2));
  border: 1px solid rgba(255,179,71,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.feature p { color: var(--text-soft); font-size: 0.875rem; margin: 0; }

/* ========================================
   HOSTING SECTION
   ======================================== */
.hosting-section { background: var(--white); }

/* Slim 4-item strip replaces the redundant 6-card grid */
.hosting-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.hosting-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hosting-strip__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-warm); }
.hosting-strip__icon { font-size: 1.8rem; }
.hosting-strip__item strong { font-size: 0.92rem; font-weight: 700; color: var(--text-dark); }
.hosting-strip__item span  { font-size: 0.8rem; color: var(--text-soft); line-height: 1.4; }

/* ========================================
   PROCESS SECTION
   ======================================== */
.process-section {
  background: linear-gradient(160deg, #FFF9EE 0%, #FFF5D8 100%);
  border-top: 2px solid rgba(255, 179, 71, 0.35);
}

.process-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.step {
  flex: 1;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }

.step__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 179, 71, 0.25);
  line-height: 1;
  margin-bottom: 12px;
}
.step__content h4 { margin-bottom: 8px; }
.step__content p { color: var(--text-soft); font-size: 0.875rem; }

.step__arrow {
  font-size: 1.4rem;
  color: var(--sun-orange);
  flex-shrink: 0;
  opacity: 0.5;
}

/* ========================================
   PORTFOLIO
   ======================================== */
.work-section { background: var(--white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.portfolio-item--tall { grid-row: span 2; }
.portfolio-item--wide { grid-column: span 2; }

.portfolio-item__bg {
  height: 100%;
  min-height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s;
}
.portfolio-item:hover .portfolio-item__bg { transform: scale(1.02); }

.portfolio-item__overlay {
  padding: 24px;
  background: linear-gradient(to top, rgba(45,27,0,0.45) 0%, transparent 100%);
  width: 100%;
}
.portfolio-item__tag {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}
.portfolio-item__overlay h3 { color: white; font-size: 1.1rem; margin-bottom: 4px; }
.portfolio-item__overlay p { color: rgba(255,255,255,0.8); font-size: 0.8rem; }

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
  background: linear-gradient(160deg, #FFF9EE 0%, #FFF5D8 100%);
}

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

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }

.testimonial--highlight {
  background: linear-gradient(160deg, #FFF6E0, #FFF9EE);
  border-color: rgba(255, 200, 80, 0.5);
  box-shadow: 0 4px 24px rgba(255, 200, 80, 0.15);
}

.testimonial__stars { color: var(--sun-orange); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-dark);
  flex-shrink: 0;
}
.testimonial__author strong { display: block; font-size: 0.9rem; }
.testimonial__author span { font-size: 0.78rem; color: var(--text-soft); }

/* ========================================
   PRICING
   ======================================== */
.pricing-section { background: var(--white); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--sky-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm); }

.pricing-card--featured {
  background: linear-gradient(160deg, #FFF6E0, #FFFBF0);
  border: 2px solid rgba(255, 200, 80, 0.6);
  box-shadow: 0 8px 40px rgba(255, 200, 80, 0.2);
  transform: translateY(-8px);
}
.pricing-card--featured:hover { transform: translateY(-14px); }

.pricing-card__popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF9A40, #FFD86B);
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.pricing-card__price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 12px;
}
.pricing-card__price span { font-size: 1rem; font-weight: 500; color: var(--text-soft); }
.pricing-card__setup {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.pricing-card__desc { color: var(--text-soft); font-size: 0.875rem; margin-bottom: 24px; line-height: 1.6; }

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-card__features li {
  font-size: 0.875rem;
  color: var(--text-mid);
}

/* ========================================
   CONTACT
   ======================================== */
.contact-section {
  background: linear-gradient(160deg, #FFF9EE 0%, #FFF5D8 100%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.contact-inner__content h2 { margin-bottom: 16px; }
.contact-inner__content > p { color: var(--text-soft); margin-bottom: 28px; line-height: 1.7; }

.contact-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-mid);
}

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-warm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--sky-light);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sun-orange);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.15);
  background: var(--white);
}
.form-group select { appearance: none; cursor: pointer; }

.form-success {
  display: none;
  text-align: center;
  margin-top: 16px;
  padding: 14px;
  background: rgba(255, 216, 107, 0.2);
  border: 1px solid rgba(255, 179, 71, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: #A06010;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 72px 24px 48px;
}

.footer__brand .nav__logo { color: var(--white); margin-bottom: 14px; }
.footer__brand p { font-size: 0.875rem; line-height: 1.6; max-width: 240px; margin-bottom: 20px; }

.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}
.footer__socials a:hover {
  background: rgba(255, 200, 80, 0.15);
  border-color: rgba(255, 200, 80, 0.3);
  color: var(--sun-yellow);
}

.footer__col h5 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--sun-yellow); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
}
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-links a:hover { color: var(--sun-yellow); }

/* ========================================
   ANIMATIONS & SCROLL REVEAL
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none; /* invisible elements must not capture taps */
}
.reveal.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .cards-grid,
  .hosting-strip,
  .testimonials-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-section__inner,
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item--tall { grid-row: span 1; }
  .portfolio-item--wide { grid-column: span 1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .cards-grid,
  .hosting-strip,
  .testimonials-grid,
  .pricing-grid,
  .portfolio-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .process-steps { flex-direction: column; }
  .step__arrow { transform: rotate(90deg); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; text-align: center; justify-content: center; white-space: normal; }
  .hero__stats { justify-content: center; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* AI demo section - ensure visual area is scrollable and fully tappable */
  .ai-section__visual { width: 100%; }
  .url-personalizer,
  .chat-demo { max-width: 100%; }

  /* Increase touch targets for chat/demo buttons */
  .chat-demo__input button,
  .chatbot-panel__input button { width: 44px; height: 44px; font-size: 1.1rem; }
  .theme-btn { min-height: 48px; padding: 10px 12px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 80px; }
  .hero__inner { padding: 32px 0 48px; }
  .hero__headline { font-size: clamp(2rem, 9vw, 2.4rem); }
  .hero__sub { max-width: 100%; font-size: 1rem; }
  .hero__inner { text-align: center; }
  .hero__badge { font-size: 0.75rem; padding: 6px 14px; margin-left: auto; margin-right: auto; }
  .hero__headline { margin-left: auto; margin-right: auto; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__stats { flex-direction: column; align-items: center; gap: 16px; }
  .stat { text-align: center; }
  .stat__divider { display: none; }
  .section__header { margin-bottom: 40px; }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .url-personalizer__form { flex-wrap: wrap; }
  .url-personalizer__btn { flex: 0 0 100%; }
}

/* ========================================
   CHATBOT WIDGET
   ======================================== */
.chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  /* The invisible closed panel is ~350px tall and nearly full-width on mobile.
     Without this, the widget container (z-index 999) swallows taps across most
     of the page. Children that need to be interactive set pointer-events: auto. */
  pointer-events: none;
}

.chatbot-trigger {
  width: 60px;
  height: 60px;
  pointer-events: auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9A40 0%, #FFD86B 100%);
  box-shadow: 0 6px 28px rgba(255, 160, 60, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  padding: 12px;
  flex-shrink: 0;
}
.chatbot-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 36px rgba(255, 160, 60, 0.6);
}
.chatbot-trigger svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: spin-slow 8s linear infinite;
}

.chatbot-panel {
  width: 340px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(45, 27, 0, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-height: 480px;
}
.chatbot-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chatbot-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FF9A40 0%, #FFD86B 100%);
  flex-shrink: 0;
}
.chatbot-panel__info { display: flex; align-items: center; gap: 10px; }
.chatbot-panel__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}
.chatbot-panel__avatar svg { width: 100%; height: 100%; overflow: visible; }
.chatbot-panel__name { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); line-height: 1.2; }
.chatbot-panel__status { font-size: 0.7rem; color: rgba(45,27,0,0.65); }
.chatbot-panel__close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: var(--text-dark);
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.chatbot-panel__close:hover { background: rgba(255,255,255,0.45); }

.chatbot-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
}

.chatbot-msg {
  display: flex;
  max-width: 85%;
  animation: msg-in 0.3s ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chatbot-msg span {
  display: inline-block;
  padding: 9px 13px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.55;
}
.chatbot-msg--bot { align-self: flex-start; }
.chatbot-msg--bot span {
  background: var(--sky-warm);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}
.chatbot-msg--user { align-self: flex-end; flex-direction: row-reverse; }
.chatbot-msg--user span {
  background: linear-gradient(135deg, #FF9A40, #FFD86B);
  color: var(--text-dark);
  border-bottom-right-radius: 4px;
}

.chatbot-typing {
  padding: 4px 16px 12px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.chatbot-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sun-orange);
  opacity: 0.4;
  animation: typing-dot 1.2s ease-in-out infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.3); }
}

.chatbot-panel__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chatbot-panel__input input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 0.875rem;
  background: var(--sky-light);
  outline: none;
  transition: border-color 0.2s;
}
.chatbot-panel__input input:focus { border-color: var(--sun-orange); }
.chatbot-panel__input button {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9A40, #FFD86B);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chatbot-panel__input button:hover { transform: scale(1.08); }
.chatbot-panel__input button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Chatbot greeting bubble ── */
.chatbot-greeting {
  position: absolute;
  bottom: 72px;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px 14px 4px 14px;
  padding: 12px 36px 12px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  max-width: 210px;
  animation: greeting-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
  pointer-events: auto; /* re-enable: parent widget is pointer-events: none */
}
.chatbot-greeting p {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}
.chatbot-greeting__close {
  position: absolute;
  top: 6px; right: 8px;
  background: none;
  border: none;
  font-size: 0.9rem;
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}
.chatbot-greeting__close:hover { color: var(--text-dark); }
@keyframes greeting-pop {
  from { opacity: 0; transform: scale(0.75) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

@media (max-width: 480px) {
  .chatbot-widget { bottom: 16px; right: 16px; }
  .chatbot-panel { width: calc(100vw - 32px); }
}
