/* ============================================
   COMPONENTS — Nav, Toggle, Cards, Phone, Form, Footer
   ============================================ */

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: padding 0.3s, background 0.4s;
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  letter-spacing: -0.04em; color: var(--text);
  transition: color 0.4s;
}
.logo i { color: var(--orange); font-style: normal; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500;
  color: var(--text2); transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

.nav-links a.btn-nav {
  padding: 10px 24px; border-radius: 8px;
  background: var(--orange); color: white;
  font-weight: 700; font-size: 0.82rem;
  font-family: var(--font-body);
  border: none; cursor: pointer;
  transition: all 0.25s; letter-spacing: 0.01em;
}
.nav-links a.btn-nav:hover { box-shadow: 0 0 28px var(--orange-glow); transform: translateY(-1px); color: white; }

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger svg { width: 24px; height: 24px; stroke: var(--text); transition: stroke 0.4s; }

/* ─── THEME TOGGLE ─── */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text2);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,107,44,0.05);
}
.theme-toggle::after { content: var(--toggle-icon); }

/* ─── BENTO CARDS (Services) ─── */
.bento-card {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.bento-card:hover {
  border-color: var(--glass-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--card-shadow);
}
.bento-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--violet));
  opacity: 0; transition: opacity 0.3s;
}
.bento-card:hover::before { opacity: 1; }

.bc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 20px;
}
.bc-icon-1 { background: rgba(255,107,44,0.1); }
.bc-icon-2 { background: rgba(59,130,246,0.1); }
.bc-icon-3 { background: rgba(34,197,94,0.1); }
.bc-icon-4 { background: rgba(139,92,246,0.1); }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.bento-card > p { font-size: 0.88rem; color: var(--text2); line-height: 1.65; }

.bc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.bc-tag {
  padding: 4px 12px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text3); letter-spacing: 0.02em;
}

/* ─── USE CASE CARDS ─── */
.uc {
  padding: 28px; border-radius: var(--r);
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.uc:hover { border-color: var(--glass-hover); transform: translateY(-3px); }
.uc-emoji { font-size: 1.5rem; margin-bottom: 14px; }
.uc h4 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 6px; letter-spacing: -0.01em;
}
.uc p { font-size: 0.82rem; color: var(--text2); line-height: 1.6; }

/* ─── ABOUT VALUE CARDS ─── */
.a-val {
  display: flex; gap: 14px; padding: 20px;
  border-radius: var(--r-sm);
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  transition: border-color 0.3s;
}
.a-val:hover { border-color: rgba(255,107,44,0.3); }
.av-ic {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,107,44,0.06); font-size: 1.1rem;
}
.a-val h5 { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.a-val p  { font-size: 0.78rem; color: var(--text3); margin: 0; }

/* ─── DEMO FEATURE CARDS ─── */
.d-feat {
  display: flex; gap: 14px; padding: 16px;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: border-color 0.3s;
}
.d-feat:hover { border-color: var(--orange); }
.d-feat-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,107,44,0.08); font-size: 0.85rem;
}
.d-feat h5 { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.d-feat p  { font-size: 0.78rem; color: var(--text3); margin: 0; }

/* ─── PHONE MOCKUP ─── */
.phone {
  width: 280px; margin: 0 auto;
  background: var(--phone-bg);
  border-radius: 32px; padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ph-notch {
  width: 80px; height: 22px;
  background: var(--phone-bg);
  border-radius: 0 0 12px 12px;
  margin: 0 auto 10px;
}
.ph-screen {
  background: var(--phone-screen);
  border-radius: 22px; padding: 16px 12px;
  min-height: 380px;
  display: flex; flex-direction: column;
}
.ph-head {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.ph-head h6 { font-size: 0.75rem; font-weight: 700; color: #F4F4F5; }
.ph-head span { font-size: 0.62rem; color: var(--orange); }
.ph-msgs { flex: 1; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.m { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 0.72rem; line-height: 1.5; }
.m-ai { background: var(--msg-ai-bg); color: var(--msg-ai-text); align-self: flex-start; border-bottom-left-radius: 3px; }
.m-u   { background: var(--orange); color: white; align-self: flex-end; border-bottom-right-radius: 3px; font-weight: 600; }

/* ─── AUDIO PLAYER (Glassmorphism) ─── */
.audio-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.audio-box::before {
  content: '';
  position: absolute;
  top: -50px; left: -50px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--orange-glow);
  filter: blur(50px);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s;
}
.audio-box::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(139,92,246,0.08);
  filter: blur(40px);
  pointer-events: none;
}
.audio-box:hover {
  border-color: rgba(255,107,44,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.audio-box:hover::before { opacity: 1; }

.ab-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--violet));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.2s;
}
.ab-play::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,107,44,0.25);
  animation: abPulseRing 2.5s ease-in-out infinite;
  pointer-events: none;
}
.ab-play:hover { transform: scale(1.08); }

@keyframes abPulseRing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0; }
}

.ab-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.ab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ab-info {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.ab-info strong {
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.ab-info span {
  font-size: 0.72rem; color: var(--text3);
}

.ab-bars {
  display: flex; align-items: center; gap: 2.5px;
  height: 24px; flex-shrink: 0;
}
.ab-bar {
  width: 2.5px; border-radius: 4px;
  background: var(--text3);
  height: 8px;
  opacity: 0.5;
  transition: height 0.3s, background 0.3s, opacity 0.3s;
}
.audio-box.playing .ab-bar {
  background: var(--orange);
  opacity: 0.8;
  animation: abBounce 1s ease-in-out infinite;
}
.audio-box.playing .ab-bar:nth-child(1)  { animation-delay: 0s; }
.audio-box.playing .ab-bar:nth-child(2)  { animation-delay: 0.07s; }
.audio-box.playing .ab-bar:nth-child(3)  { animation-delay: 0.14s; }
.audio-box.playing .ab-bar:nth-child(4)  { animation-delay: 0.21s; }
.audio-box.playing .ab-bar:nth-child(5)  { animation-delay: 0.28s; }
.audio-box.playing .ab-bar:nth-child(6)  { animation-delay: 0.35s; }
.audio-box.playing .ab-bar:nth-child(7)  { animation-delay: 0.42s; }
.audio-box.playing .ab-bar:nth-child(8)  { animation-delay: 0.49s; }
.audio-box.playing .ab-bar:nth-child(9)  { animation-delay: 0.56s; }
.audio-box.playing .ab-bar:nth-child(10) { animation-delay: 0.63s; }
.audio-box.playing .ab-bar:nth-child(11) { animation-delay: 0.7s; }
.audio-box.playing .ab-bar:nth-child(12) { animation-delay: 0.77s; }
.audio-box.playing .ab-bar:nth-child(13) { animation-delay: 0.84s; }
.audio-box.playing .ab-bar:nth-child(14) { animation-delay: 0.91s; }
.audio-box.playing .ab-bar:nth-child(15) { animation-delay: 0.98s; }
.audio-box.playing .ab-bar:nth-child(16) { animation-delay: 1.05s; }
.audio-box.playing .ab-bar:nth-child(17) { animation-delay: 1.12s; }
.audio-box.playing .ab-bar:nth-child(18) { animation-delay: 1.19s; }
.audio-box.playing .ab-bar:nth-child(19) { animation-delay: 1.26s; }
.audio-box.playing .ab-bar:nth-child(20) { animation-delay: 1.33s; }

@keyframes abBounce {
  0%, 100% { height: 8px; }
  50% { height: 24px; }
}

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

.ab-time {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  color: var(--text3);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}
.ab-current { text-align: right; }
.ab-duration { text-align: left; }

.ab-progress {
  flex: 1;
  height: 3px;
  background: var(--glass-border);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s;
}
.ab-progress:hover {
  height: 5px;
}
.ab-progress:hover .ab-progress-handle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ab-progress-filled {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--violet));
  border-radius: 4px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.ab-progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}

.audio-box.playing .ab-progress-handle {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ─── CONTACT FORM ─── */
.ct-form {
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: var(--r); padding: 32px;
  transition: background 0.4s, border-color 0.4s;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.f-grp { margin-bottom: 12px; }
.f-grp:last-of-type { margin-bottom: 20px; }
.f-grp label {
  display: block; font-size: 0.7rem; font-weight: 700;
  color: var(--text2); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.f-grp input, .f-grp select, .f-grp textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--input-bg); color: var(--text);
  font-family: var(--font-body); font-size: 0.88rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.4s;
}
.f-grp input:focus, .f-grp select:focus, .f-grp textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,44,0.08);
}
.f-grp textarea { resize: vertical; min-height: 90px; }
.f-grp select { cursor: pointer; -webkit-appearance: none; appearance: none; }
.f-submit { width: 100%; border-radius: 10px; }

/* ─── CONTACT INFO ─── */
.ct-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 800;
  margin-bottom: 12px; letter-spacing: -0.03em;
}
.ct-info > p { color: var(--text2); margin-bottom: 28px; font-size: 0.92rem; }
.ct-channels { display: flex; flex-direction: column; gap: 16px; }
.ct-ch { display: flex; gap: 12px; align-items: center; }
.ct-ch-ic {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,107,44,0.06);
  font-size: 0.95rem; flex-shrink: 0;
}
.ct-ch span   { font-size: 0.75rem; color: var(--text3); }
.ct-ch strong { display: block; font-size: 0.88rem; color: var(--text); }

/* ─── FOOTER ─── */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--glass-border);
  position: relative; z-index: 1;
}
.ft-top {
  display: flex; justify-content: space-between; align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 24px;
}
.ft-brand .logo { margin-bottom: 8px; display: block; }
.ft-brand p { font-size: 0.8rem; color: var(--text3); max-width: 240px; }
.ft-cols { display: flex; gap: 64px; }
.ft-col h6 {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text3); margin-bottom: 12px;
}
.ft-col a {
  display: block; font-size: 0.82rem;
  color: var(--text2); margin-bottom: 7px;
  transition: color 0.2s;
}
.ft-col a:hover { color: var(--orange); }

.ft-bottom { display: flex; justify-content: space-between; align-items: center; }
.ft-bottom p { font-size: 0.72rem; color: var(--text3); }
.ft-socials { display: flex; gap: 10px; }
.ft-socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  color: var(--text3); font-size: 0.75rem;
  transition: all 0.3s;
}
.ft-socials a:hover { border-color: var(--orange); color: var(--orange); }
.ft-socials svg { width: 16px; height: 16px; }
