/* ============================================================================
   CloudPhone — marketing site styles (control-room / device-farm aesthetic)
   Self-contained, no build step. Dark theme committed.
   ========================================================================== */

:root {
  --bg: #0a0e12;
  --bg-2: #0d1319;
  --surface: #111820;
  --surface-2: #151d27;
  --border: #1f2a35;
  --border-soft: #18222c;
  --text: #e8eef3;
  --muted: #8fa3b3;
  --muted-2: #5f7386;
  --accent: #29e0a6;
  --accent-dim: #1aa87c;
  --accent-glow: rgba(41, 224, 166, 0.35);
  --warn: #ffb347;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  /* Font hệ thống — giống gemphonefarm.com (Tailwind default stack, không webfont) */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* dot-grid texture, evoking racks of devices */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 26px 26px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* eyebrow / mono label -------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 5px rgba(41, 224, 166, 0.05); }
}

/* buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #04140e;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: grid; place-items: center; color: #04140e; font-size: 18px;
  box-shadow: 0 6px 18px -6px var(--accent-glow);
}
/* Logo: site nền tối cố định → ép logo (đen) hiển thị TRẮNG cho khỏi chìm.
   Nếu sau này có nền sáng, override .brand-logo bằng filter: brightness(0) (đen). */
.brand-logo {
  height: 36px; width: auto; max-width: 190px; object-fit: contain; display: block;
  filter: brightness(0) invert(1);
}
.brand-name { white-space: nowrap; }
/* Logo ở footer to hơn header */
.footer-brand .brand-logo { height: 56px; max-width: 260px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 20px; }

/* generic section -------------------------------------------------------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* hero ------------------------------------------------------------------- */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(41, 224, 166, 0.14), transparent 60%),
    radial-gradient(50% 50% at 8% 90%, rgba(41, 224, 166, 0.06), transparent 55%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; margin: 22px 0 20px; }
.hero h1 .hl { color: var(--accent); }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero-badge svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* hero phone mockup ------------------------------------------------------ */
.device-stage { position: relative; display: grid; place-items: center; }
.device-stage::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%); filter: blur(20px);
}
.phone {
  position: relative; width: 260px; height: 540px; border-radius: 42px;
  background: linear-gradient(160deg, #1b2531, #0e151d);
  border: 1px solid #26333f; padding: 12px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone-screen {
  height: 100%; border-radius: 32px; background: linear-gradient(180deg, #0b1016, #0f1720);
  border: 1px solid #202c37; overflow: hidden; position: relative;
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 20px; border-radius: 0 0 14px 14px; background: #060a0e; z-index: 3; }
.phone-status { display: flex; justify-content: space-between; padding: 12px 20px 0; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.phone-live { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.phone-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 46px 22px 22px; }
.app-ico { aspect-ratio: 1; border-radius: 13px; background: linear-gradient(150deg, #1a2530, #131c25); border: 1px solid #222f3a; }
.app-ico:nth-child(3n) { background: linear-gradient(150deg, rgba(41,224,166,0.22), rgba(41,224,166,0.05)); border-color: rgba(41,224,166,0.35); }
.phone-dock { position: absolute; bottom: 18px; left: 20px; right: 20px; height: 58px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid #222f3a; display: flex; align-items: center; justify-content: space-around; padding: 0 16px; }
.phone-dock span { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(150deg, #1c2732, #141d26); }
/* floating status chips around phone */
.chip {
  position: absolute; font-family: var(--font-mono); font-size: 12px; padding: 9px 13px; border-radius: 10px;
  background: rgba(17, 24, 32, 0.9); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; gap: 8px; backdrop-filter: blur(6px); box-shadow: var(--shadow);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.chip.c1 { top: 60px; left: -18px; animation: floaty 5s ease-in-out infinite; }
.chip.c2 { bottom: 96px; right: -26px; animation: floaty 7s ease-in-out infinite 0.5s; }

/* stats strip ------------------------------------------------------------ */
.stats { border-block: 1px solid var(--border-soft); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 24px; text-align: center; border-left: 1px solid var(--border-soft); }
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--text); letter-spacing: -0.03em; }
.stat-num .u { color: var(--accent); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* feature cards ---------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(41,224,166,0.4); box-shadow: 0 22px 50px -26px var(--accent-glow); }
.card-ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(41,224,166,0.1); border: 1px solid rgba(41,224,166,0.25); color: var(--accent);
}
.card-ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 15px; }

/* steps ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  display: block; margin-bottom: 14px; letter-spacing: 0.1em;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* pricing ---------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: 20px; padding: 32px; position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured { border-color: var(--accent); box-shadow: 0 30px 70px -34px var(--accent-glow); }
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--accent); color: #04140e; padding: 5px 14px; border-radius: 999px;
}
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.plan-desc { color: var(--muted); font-size: 14px; margin: 6px 0 20px; min-height: 42px; }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; }
.plan-price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; }
.plan-list li { display: flex; gap: 11px; font-size: 15px; color: var(--muted); }
.plan-list li svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 2px; }
.plan .btn { width: 100%; justify-content: center; }

/* price table ------------------------------------------------------------ */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.price-table thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); background: var(--bg-2); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td.model { font-weight: 600; color: var(--text); }
.price-table td .num { font-family: var(--font-mono); color: var(--accent); }

/* faq -------------------------------------------------------------------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 17px; padding: 20px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .pm { color: var(--accent); font-size: 22px; transition: transform 0.25s ease; flex: none; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--muted); }
.faq-a p { padding: 0 22px 20px; font-size: 15.5px; }

/* CTA banner ------------------------------------------------------------- */
.cta-banner { position: relative; overflow: hidden; border: 1px solid rgba(41,224,166,0.3); border-radius: 24px; padding: 56px; text-align: center; background: linear-gradient(150deg, var(--surface-2), var(--bg-2)); }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 50% 0%, rgba(41,224,166,0.16), transparent 60%); }
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.cta-banner p { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* forms ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.info-list { display: grid; gap: 22px; margin-top: 30px; }
.info-item { display: flex; gap: 15px; }
.info-item .ii { width: 44px; height: 44px; border-radius: 12px; background: rgba(41,224,166,0.1); border: 1px solid rgba(41,224,166,0.25); color: var(--accent); display: grid; place-items: center; flex: none; }
.info-item h4 { font-size: 15px; margin-bottom: 3px; }
.info-item p { color: var(--muted); font-size: 14.5px; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 13px 15px; width: 100%;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--muted-2); }

/* generic page hero (inner pages) --------------------------------------- */
.page-hero { padding: 80px 0 30px; text-align: center; position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 18px auto 16px; max-width: 780px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* auth (login / register) ------------------------------------------------ */
.auth-body {
  min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; position: relative;
}
.auth-body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 45% at 80% 8%, rgba(41,224,166,0.14), transparent 60%),
    radial-gradient(45% 45% at 12% 92%, rgba(41,224,166,0.07), transparent 55%);
}
.auth-wrap { width: 100%; max-width: 440px; position: relative; }
.auth-home { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.auth-home:hover { color: var(--accent); }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 38px; box-shadow: var(--shadow); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h1 { font-size: 27px; }
.auth-head p { color: var(--muted); font-size: 15px; margin-top: 7px; }
.btn-google {
  width: 100%; justify-content: center; background: #fff; color: #1f2937;
  border: 1px solid #e2e8f0; font-weight: 600;
}
.btn-google:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(0,0,0,0.6); }
.auth-divider {
  display: flex; align-items: center; gap: 14px; margin: 22px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2);
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-form { display: grid; gap: 16px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.auth-row label { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.auth-terms { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.auth-terms a { color: var(--accent); }
.checkbox { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.auth-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14.5px; }
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-alert {
  background: rgba(255, 90, 90, 0.1); border: 1px solid rgba(255, 90, 90, 0.4); color: #ff9a9a;
  border-radius: var(--radius-sm); padding: 12px 15px; font-size: 14px; margin-bottom: 18px;
}
.captcha-box { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.captcha-img { border-radius: var(--radius-sm); border: 1px solid var(--border); height: 54px; }
.captcha-refresh {
  width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--accent); font-size: 20px; cursor: pointer; flex: none;
  transition: border-color 0.2s, transform 0.2s;
}
.captcha-refresh:hover { border-color: var(--accent); transform: rotate(90deg); }
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-user .nav-email { color: var(--muted); font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-btn { background: none; border: 1px solid var(--border); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.logout-btn:hover { border-color: var(--accent); color: var(--accent); }

/* footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-2); padding: 64px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 16px 0 0; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 13.5px; }

/* blog ------------------------------------------------------------------- */
/* category chips */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip-cat {
  font-size: 14px; font-weight: 500; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
  transition: all 0.2s ease;
}
.chip-cat:hover { border-color: var(--accent); color: var(--accent); }
.chip-cat.active { background: var(--accent); color: #04140e; border-color: var(--accent); }

/* category badge on thumbnails */
.cat-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(10, 14, 18, 0.82); backdrop-filter: blur(6px);
  border: 1px solid var(--border); color: var(--accent); padding: 5px 11px; border-radius: 999px;
}

/* featured hero post */
.post-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-bottom: 34px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-featured:hover { transform: translateY(-4px); border-color: rgba(41,224,166,0.4); box-shadow: 0 26px 60px -30px var(--accent-glow); }
.pf-thumb { position: relative; min-height: 320px; background: linear-gradient(150deg, #16202b, #0e151d); overflow: hidden; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pf-thumb.placeholder::after { content: "◉"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; color: rgba(41,224,166,0.22); }
.pf-body { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.pf-body h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.pf-body p { color: var(--muted); font-size: 16px; }
.pf-body .post-more { margin-top: 8px; color: var(--accent); font-weight: 600; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(41,224,166,0.4); box-shadow: 0 22px 50px -26px var(--accent-glow); }
.post-thumb { aspect-ratio: 16 / 9; background: linear-gradient(150deg, #16202b, #0e151d); position: relative; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb.placeholder::after {
  content: "◉"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 46px; color: rgba(41,224,166,0.25);
}
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted-2); text-transform: uppercase; }
.post-card h3 { font-size: 19px; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.post-more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; padding-top: 6px; }

/* pagination */
.pagination-wrap { margin-top: 44px; display: flex; justify-content: center; }
.pagination-wrap nav { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination-wrap a, .pagination-wrap span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 14px; background: var(--surface);
}
.pagination-wrap a:hover { border-color: var(--accent); color: var(--accent); }
.pagination-wrap span.active { background: var(--accent); color: #04140e; border-color: var(--accent); font-weight: 600; }
.pagination-wrap span[aria-disabled] { opacity: 0.4; }

/* article ---------------------------------------------------------------- */
.article { max-width: 780px; margin-inline: auto; }
.article-cover { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 34px; aspect-ratio: 16/8; object-fit: cover; }
.article-body { color: var(--text); font-size: 17px; line-height: 1.8; }
.article-body p { margin: 0 0 20px; color: #cdd8e1; }
.article-body h2 { font-size: 28px; margin: 38px 0 16px; }
.article-body h3 { font-size: 22px; margin: 30px 0 12px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { color: #cdd8e1; padding-left: 22px; margin: 0 0 20px; display: grid; gap: 8px; }
.article-body img { border-radius: var(--radius-sm); margin: 24px 0; border: 1px solid var(--border); }
.article-body blockquote { border-left: 3px solid var(--accent); margin: 24px 0; padding: 6px 20px; color: var(--muted); font-style: italic; }
.article-body pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.back-link:hover { color: var(--accent); }

/* newsletter ------------------------------------------------------------- */
.newsletter {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  background: linear-gradient(150deg, var(--surface-2), var(--bg-2));
  border: 1px solid rgba(41,224,166,0.28); border-radius: 22px; padding: 44px;
  position: relative; overflow: hidden;
}
.newsletter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 130% at 12% 0%, rgba(41,224,166,0.12), transparent 60%); pointer-events: none; }
.newsletter > * { position: relative; }
.newsletter h2 { font-size: clamp(24px, 3vw, 32px); margin: 12px 0 10px; }
.newsletter p { color: var(--muted); font-size: 16px; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 14px 16px;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

/* scroll reveal ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .device-stage { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-featured { grid-template-columns: 1fr; }
  .pf-thumb { min-height: 220px; }
  .newsletter { grid-template-columns: 1fr; gap: 22px; padding: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}
@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 18px;
  }
  .nav-links.open a.active::after { display: none; }
  .cards { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .pf-body { padding: 28px; }
  .newsletter-form { flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .stat-num { font-size: 32px; }
}
