/* ==========================================================================
   EnvisionApps — Portfolio
   ========================================================================== */

:root {
  --ink: #14121f;
  --ink-soft: #4a4560;
  --ink-faint: #837e99;
  --bg: #fbf9fd;
  --bg-alt: #f3effa;
  --bg-card: #ffffff;
  --line: #e8e3f2;

  --primary: #04707d;
  --primary-bright: #06a6b7;
  --primary-dark: #035a64;
  --primary-soft: #e1f5f7;
  --accent: #767a1a;
  --accent-bright: #a7aa29;
  --accent-soft: #f2f3d9;
  --gold: #e0a72e;
  --green: #1f9d6b;

  --shadow-sm: 0 1px 2px rgba(20, 18, 31, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 20, 80, 0.08);
  --shadow-lg: 0 24px 60px -12px rgba(31, 20, 80, 0.22);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.section {
  padding: 72px 0;
  position: relative;
}
.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p.lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-soft);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translate(3px, -2px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(4, 112, 125, 0.55);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 16px 32px -8px rgba(4, 112, 125, 0.6); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 249, 253, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(31, 20, 80, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand small { display: block; font-weight: 500; font-size: 10.5px; color: var(--ink-faint); letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); }

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

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span {
  position: relative;
  width: 16px; height: 2px;
  background: var(--ink);
  display: block;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 16px; height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 128px 0 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  background:
    radial-gradient(560px 420px at 18% 15%, rgba(6, 166, 183, 0.16), transparent 70%),
    radial-gradient(480px 380px at 85% 10%, rgba(167, 170, 41, 0.13), transparent 70%),
    radial-gradient(600px 500px at 50% 60%, rgba(224, 167, 46, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.05); }
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  margin-bottom: 22px;
}
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary), var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
}
.hero-stats .stat span { font-size: 13.5px; color: var(--ink-faint); }

.hero-visual { position: relative; height: 560px; }
.float-card {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  animation: floaty 7s ease-in-out infinite;
}
.float-card img { border-radius: 14px; }
.fc-1 { top: 0; left: 8%; width: 230px; animation-delay: 0s; z-index: 3; }
.fc-2 { bottom: 6%; left: 0; width: 190px; animation-delay: 1.1s; z-index: 2; }
.fc-3 { top: 18%; right: 0; width: 220px; animation-delay: 2s; z-index: 4; }
.fc-4 { bottom: 0; right: 10%; width: 170px; animation-delay: 0.6s; z-index: 1; }

.fc-people {
  top: 50%;
  left: 50%;
  width: 290px;
  z-index: 0;
  padding: 10px;
  animation-delay: 1.5s;
  transform: translate(-50%, -50%);
}
.fc-people img { border-radius: 16px; aspect-ratio: 4 / 4.9; object-fit: cover; object-position: center 18%; }
@keyframes floatyCenter {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 14px)); }
}
.fc-people { animation-name: floatyCenter; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.fc-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  margin-bottom: 10px;
}
.fc-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.30s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.37s; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.about-media { position: sticky; top: 116px; align-self: start; }
.about-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.about-stats .stat-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.about-stats .stat-box b { display: block; font-family: var(--font-display); font-size: 26px; }
.about-stats .stat-box span { font-size: 12.5px; color: var(--ink-faint); }
.about-card .quote-mark { font-family: var(--font-display); font-size: 56px; color: var(--primary-soft); line-height: 1; margin-bottom: 8px; }
.about-card blockquote { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 20px; }
.about-card .who { display: flex; align-items: center; gap: 12px; }
.avatar-dot {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700;
}

.about-copy p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 18px; }
.value-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.value-item {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color .3s var(--ease);
}
.value-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 12px;
}
.value-icon svg { width: 19px; height: 19px; }
.value-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.value-item p { font-size: 13.8px; color: var(--ink-faint); }

/* ==========================================================================
   Technologies
   ========================================================================== */
.tech-groups { display: grid; gap: 18px; }
.tech-group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.tech-group:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tech-group-head { display: flex; align-items: center; gap: 14px; }
.tech-group-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; flex-shrink: 0;
}
.tech-group-icon svg { width: 24px; height: 24px; }
.tech-group h3 { font-size: 17px; }
.tech-group-head span { font-size: 13px; color: var(--ink-faint); }
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.tech-pill:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   Apps showcase
   ========================================================================== */
.app-filter {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px;
}
.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: start;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.app-card-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.app-icon {
  width: 60px; height: 60px; border-radius: 16px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-title-wrap { flex: 1; }
.app-title-wrap h3 { font-size: 19px; margin-bottom: 4px; }
.app-tagline { font-size: 14px; color: var(--ink-faint); }
.app-badges { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 7px;
  white-space: nowrap;
}
.badge-live { background: #e6f7ef; color: var(--green); }
.badge-platform { background: var(--bg-alt); color: var(--ink-soft); }

.app-desc { font-size: 14.8px; color: var(--ink-soft); margin-bottom: 18px; }
.app-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.app-features li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.8px; color: var(--ink-soft);
}
.app-features svg { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.app-shot { border-radius: 14px; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--line); }
.app-shot img { width: 100%; display: block; transition: transform .6s var(--ease); }
.app-card:hover .app-shot img { transform: scale(1.035); }

.app-card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(10, 8, 20, 0.78), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-caption b { display: block; font-size: 14.5px; font-family: var(--font-display); }
.gallery-caption span { font-size: 12px; opacity: 0.85; }

.gallery-item.tall { grid-row: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 11, 28, 0.86);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure {
  max-width: 880px; width: 100%;
  transform: scale(0.94);
  transition: transform .35s var(--ease);
}
.lightbox.open figure { transform: scale(1); }
.lightbox img { border-radius: 16px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 16px; font-size: 14px; opacity: 0.85; }
.lightbox-close {
  position: absolute; top: 28px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.2);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

/* ==========================================================================
   Articles
   ========================================================================== */
.article-list { display: grid; gap: 16px; }
.article-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.article-item:hover { box-shadow: var(--shadow-md); }
.article-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  cursor: pointer;
}
.article-tag {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 5px 10px; border-radius: 7px; display: inline-block; margin-bottom: 10px;
}
.article-head h3 { font-size: 19px; margin-bottom: 6px; }
.article-meta { font-size: 13px; color: var(--ink-faint); }
.article-chevron {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .4s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.article-chevron svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.article-item.open .article-chevron { background: var(--primary); border-color: var(--primary); color: #fff; }
.article-item.open .article-chevron svg { transform: rotate(180deg); }

.article-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.article-body-inner {
  padding: 0 30px 30px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.article-body-inner p { margin-bottom: 14px; }
.article-body-inner p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.contact-info h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 18px; }
.contact-info p.lead { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 34px; }
.contact-channels { display: grid; gap: 14px; }
.contact-channel {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-channel:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact-channel-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-channel-icon svg { width: 20px; height: 20px; }
.contact-channel b { display: block; font-size: 14.5px; }
.contact-channel span { font-size: 13px; color: var(--ink-faint); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  align-items: center; gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e6f7ef;
  color: var(--green);
  font-size: 13.8px;
  font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: flex; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #cfc9e6;
  padding: 76px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; color: #a9a2c9; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14px; color: #a9a2c9; transition: color .25s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #8880ab;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  display: grid; place-items: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-socials svg { width: 16px; height: 16px; }

/* ==========================================================================
   Simple page (privacy)
   ========================================================================== */
.page-hero {
  padding: 108px 0 70px;
  background: var(--bg-alt);
  text-align: center;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 14px; }
.page-hero p { color: var(--ink-soft); font-size: 16px; }
.policy-body { max-width: 780px; margin: 0 auto; padding: 80px 28px; }
.policy-body h2 { font-size: 22px; margin: 40px 0 14px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 12px; }
.policy-body ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.policy-body a { color: var(--primary); font-weight: 600; }
.policy-toc {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0;
}
.policy-toc a {
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.policy-toc a:hover { border-color: var(--primary); color: var(--primary); }

/* Back to top */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary); }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; margin-top: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { position: static; top: auto; }
  .tech-group { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .site-header .container { padding-top: 14px; padding-bottom: 14px; }
  body.nav-open .mobile-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-nav {
    display: grid;
    position: fixed; top: 68px; left: 16px; right: 16px; z-index: 99;
    background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
    padding: 14px;
    display: grid; gap: 4px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    border: 1px solid var(--line);
  }
  .mobile-nav a { padding: 13px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink); }
  .mobile-nav a:hover { background: var(--bg-alt); }
  .mobile-nav .btn { margin-top: 8px; }

  .value-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.tall { grid-row: span 1; }
  .hero { padding: 104px 0 0; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .app-card { padding: 24px; }
  .contact-form { padding: 26px; }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-faint);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--ink-soft); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span.sep { opacity: 0.5; }
.breadcrumb span.current { color: var(--ink); }

/* ==========================================================================
   App detail page
   ========================================================================== */
.app-hero-section { padding: 106px 0 64px; background: var(--bg-alt); }
.app-hero-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; }
.app-hero-icon {
  width: 84px; height: 84px; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--line); flex-shrink: 0;
}
.app-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-hero-title h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.app-hero-title p { font-size: 17px; color: var(--ink-soft); }
.app-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.app-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.app-hero-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 30px; }
.app-hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 22px; }
.app-hero-stats .stat span { font-size: 12.5px; color: var(--ink-faint); }

.app-intro { max-width: 740px; }
.app-intro p { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 18px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  padding: 24px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .value-icon { margin-bottom: 14px; }
.feature-card h4 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-faint); }

.check-list { display: grid; gap: 13px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: var(--ink-soft); }
.check-list svg { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }

.detail-gallery { display: grid; gap: 20px; }
.detail-gallery .gallery-item { aspect-ratio: auto; cursor: zoom-in; }
.detail-gallery .gallery-item img { height: auto; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.price-card {
  padding: 26px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--line);
  display: flex; flex-direction: column; position: relative;
}
.price-card.popular { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.price-card .price-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 800;
  padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.price-card h4 { font-size: 16px; margin-bottom: 4px; }
.price-card .price-amount { font-family: var(--font-display); font-size: 26px; margin: 10px 0 6px; }
.price-card .price-amount span { font-size: 13px; font-weight: 500; color: var(--ink-faint); }
.price-card .price-desc { font-size: 13px; color: var(--ink-faint); margin-bottom: 16px; }
.price-card ul { display: grid; gap: 9px; margin-top: auto; }
.price-card ul li { font-size: 13.3px; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.price-card ul li svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.faq-list { display: grid; gap: 14px; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
  padding: 20px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card .article-tag { margin-bottom: 10px; }
.related-card h4 { font-size: 15px; margin-bottom: 8px; line-height: 1.35; }
.related-card span { font-size: 12.5px; color: var(--ink-faint); }

.cta-banner {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-bright));
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: #fff;
}
.cta-banner h3 { font-size: clamp(22px, 3vw, 28px); color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 15px; }
.cta-banner .btn-light:hover { transform: translateY(-2px) scale(1.02); }

/* ==========================================================================
   Article detail page
   ========================================================================== */
.article-hero { padding: 106px 0 50px; background: var(--bg-alt); }
.article-hero-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; font-size: 13.5px; color: var(--ink-faint); }
.article-hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
.article-hero h1 { font-size: clamp(28px, 4.2vw, 46px); max-width: 820px; }
.article-cover { margin-top: 34px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.article-cover img { width: 100%; display: block; }

.article-content { max-width: 740px; margin: 0 auto; padding: 70px 28px; }
.article-content p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 22px; }
.article-content p:first-of-type { font-size: 19px; color: var(--ink); }
.article-byline {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 0; margin-bottom: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article-byline b { display: block; font-size: 14px; }
.article-byline span { font-size: 12.5px; color: var(--ink-faint); }
.article-app-note {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--bg-alt); border: 1px solid var(--line);
  margin-top: 40px;
}
.article-app-note img { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.article-app-note span { font-size: 12.5px; color: var(--ink-faint); display: block; }
.article-app-note b { font-size: 14.5px; }

/* ==========================================================================
   Articles hub
   ========================================================================== */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.article-card h3 { font-size: 17px; margin: 10px 0 10px; line-height: 1.35; }
.article-card p { font-size: 13.8px; color: var(--ink-faint); margin-bottom: 16px; flex: 1; }
.article-card .article-meta { font-size: 12.5px; color: var(--ink-faint); }
.article-card .app-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 14px; }

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .app-hero-section { padding: 78px 0 50px; }
  .article-hero { padding: 78px 0 40px; }
  .article-content { padding: 50px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .app-hero-stats { gap: 20px; }
  .cta-banner { padding: 32px; flex-direction: column; text-align: center; }
}
