/* ============================================================
   ARRCWood Studios — Design System
   Fonts: Outfit (body) + Fraunces (display)
   Accent: #0A84FF | Dark mode default
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font: inherit; }
ul, ol { list-style: none; }

/* --- Custom Properties --- */
:root {
  --bg:            #0f0f0f;
  --bg-surface:    #181818;
  --bg-elevated:   #242424;
  --bg-card:       #1e1e1e;

  --text:          #f2f2f2;
  --text-secondary:#a1a1a1;
  --text-muted:    #6b7280;

  --accent:        #0A84FF;
  --accent-dim:    rgba(10, 132, 255, 0.15);
  --accent-hover:  #339cff;

  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);

  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow:        0 6px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg:     0 16px 56px rgba(0, 0, 0, 0.55);

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --nav-height:    64px;
  --container:     1100px;
  --section-pad:   96px;

  --ease:          0.2s ease;
  --ease-slow:     0.4s ease;
}

[data-theme="light"] {
  --bg:            #f8f8f8;
  --bg-surface:    #efefef;
  --bg-elevated:   #e4e4e4;
  --bg-card:       #ffffff;

  --text:          #0f0f0f;
  --text-secondary:#4b5563;
  --text-muted:    #9ca3af;

  --border:        rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.13);

  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow:        0 6px 28px rgba(0, 0, 0, 0.10);
  --shadow-lg:     0 16px 56px rgba(0, 0, 0, 0.14);
}

/* --- Base --- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--ease-slow), color var(--ease-slow);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; }

p { color: var(--text-secondary); line-height: 1.8; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--surface {
  background: var(--bg-surface);
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section__title {
  margin-bottom: 16px;
}

.section__lead {
  font-size: 1.1rem;
  max-width: 660px;
  line-height: 1.8;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background var(--ease-slow);
}

[data-theme="light"] .nav {
  background: rgba(248, 248, 248, 0.85);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: opacity var(--ease);
}
.nav__logo:hover { opacity: 0.75; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color var(--ease), background var(--ease);
}
.theme-toggle:hover { color: var(--text); }

.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.nav__hamburger:hover { background: var(--bg-elevated); }

.nav__hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* Mobile Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 272px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  z-index: 200;
  padding: 72px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav a {
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--ease), background var(--ease);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text);
  background: var(--bg-elevated);
}

.mobile-nav__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: color var(--ease);
}
.mobile-nav__close:hover { color: var(--text); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.is-open { opacity: 1; pointer-events: all; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.35);
}

.btn--ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-surface); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: #fff; }

.btn--sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* --- Badges --- */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.badge--accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(10, 132, 255, 0.25);
}

/* Tech stack pills */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  letter-spacing: 0.01em;
}

/* --- App Icon Placeholder --- */
.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 2rem;
  color: #fff;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  user-select: none;
}

.app-icon--mahjong { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.app-icon--anime   { background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%); }
.app-icon--battery { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%); }
.app-icon--pinoy   { background: linear-gradient(135deg, #0369a1 0%, #38bdf8 100%); }

/* --- CSS-only Device Frame --- */
.device-frame {
  position: relative;
  width: 176px;
  border-radius: 38px;
  background: var(--bg-elevated);
  border: 7px solid var(--bg-elevated);
  outline: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.device-frame__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 20px;
  background: var(--bg);
  border-radius: 10px;
  z-index: 2;
}

.device-frame__screen {
  aspect-ratio: 9 / 19.5;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
}

.device-frame__placeholder-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
}

.device-frame__label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* --- App Hero --- */
.app-hero {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 80px;
}

.app-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.app-hero__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-hero__icon-wrap {
  margin-bottom: 24px;
}

.app-hero__title {
  margin-bottom: 12px;
}

.app-hero__tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.app-hero__platforms {
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-hero__frames {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
}

.app-hero__frames .device-frame:first-child {
  margin-top: 48px;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.feature-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0;
}

.feature-card__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Tech Highlights --- */
.tech-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.tech-layout__stack h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tech-layout__stack .tech-stack {
  flex-direction: column;
  align-items: flex-start;
}

.tech-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tech-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.tech-detail::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}

.tech-detail p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* --- Screenshots Gallery --- */
.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  margin-top: 40px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.gallery-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.gallery-item .device-frame {
  width: 150px;
}

.gallery-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* --- Legal Links --- */
.legal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-link {
  padding: 9px 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.legal-link:hover {
  color: var(--accent);
  border-color: rgba(10, 132, 255, 0.35);
  background: var(--accent-dim);
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-section h2 { margin-bottom: 12px; }
.cta-section p  { margin-bottom: 36px; }

/* --- Back Nav --- */
.back-nav {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.back-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
}
.back-nav a:hover { color: var(--accent); }

/* --- Footer --- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer__links a:hover { color: var(--text); }

.footer__note {
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-up-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up-group.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.fade-up-group.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
.fade-up-group.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
.fade-up-group.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
.fade-up-group.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
.fade-up-group.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }
.fade-up-group.is-visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.48s; }
.fade-up-group.is-visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 0.56s; }

/* --- Legal Pages --- */
.legal-hero {
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 52px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.legal-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 10px;
}

.legal-hero__date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-body {
  max-width: 760px;
}

.legal-section {
  margin-bottom: 44px;
}

.legal-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.legal-section p {
  margin-bottom: 10px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  margin: 12px 0 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-section ul li {
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-section a {
  color: var(--accent);
  transition: opacity var(--ease);
}
.legal-section a:hover { opacity: 0.75; text-decoration: underline; }

.legal-crosslinks {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  margin-top: 56px;
}

.contact-card {
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.contact-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-card__link {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  transition: opacity var(--ease);
}
.contact-card__link:hover { opacity: 0.75; }

.contact-card__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.faq-item {
  padding: 18px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.faq-item h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0;
  line-height: 1.4;
}

.faq-item p { font-size: 0.88rem; margin-bottom: 0; }
.faq-item a { color: var(--accent); }
.faq-item a:hover { opacity: 0.75; text-decoration: underline; }

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info__title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}

.contact-info__body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-direct__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact-direct__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity var(--ease);
}
.contact-direct__link:hover { opacity: 0.75; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.6;
}

.form-submit {
  align-self: flex-start;
}

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status--success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-status--error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* --- Responsive --- */
@media (max-width: 800px) {
  :root { --section-pad: 64px; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .app-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-hero__frames {
    justify-content: center;
  }

  .app-hero__frames .device-frame:first-child {
    margin-top: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .tech-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tech-layout__stack .tech-stack {
    flex-direction: row;
  }
}

@media (max-width: 520px) {
  :root { --section-pad: 52px; }

  .app-hero__frames .device-frame:last-child {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .coming-soon-card { flex: 1 1 140px; }
}

/* --- Homepage --- */
.home-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.home-hero h1 { margin-bottom: 16px; }

.home-hero .section__lead {
  margin: 0 auto 36px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: border-color var(--ease), box-shadow var(--ease), transform 0.3s ease;
}

.portfolio-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
}

.portfolio-card__icon { margin-bottom: 18px; }

.portfolio-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0;
  line-height: 1.3;
}

.portfolio-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 22px;
}

.portfolio-card__actions {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.portfolio-card__actions img { border-radius: 8px; }

.coming-soon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.coming-soon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  flex: 0 0 200px;
}

.coming-soon-card__icon {
  margin-bottom: 14px;
  opacity: 0.65;
}

.coming-soon-card__name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0;
  line-height: 1.3;
}

.coming-soon-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.coming-soon-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: auto;
}

@media (max-width: 800px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
