/* Appspid � premium minimalist landing */

:root {
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;

  --blue: #2b6de0;
  --cyan: #2ec4b6;
  --green: #7cdb3a;
  --orange: #ff8a3d;

  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --surface: #161618;
  --surface-hover: #1c1c1f;
  --text: #f5f5f7;
  --text-muted: #9898a0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 48px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.28);
  --nav-bg: rgba(10, 10, 11, 0.72);
  --glow: radial-gradient(circle at 50% 45%, rgba(46, 196, 182, 0.22), rgba(43, 109, 224, 0.12) 40%, transparent 68%);
  --btn-primary-bg: #f5f5f7;
  --btn-primary-text: #0a0a0b;
  --focus: #2ec4b6;
  --theme-color: #0a0a0b;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f4f4f5;
  --text: #111113;
  --text-muted: #6b6b76;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
  --nav-bg: rgba(250, 250, 250, 0.78);
  --glow: radial-gradient(circle at 50% 45%, rgba(46, 196, 182, 0.18), rgba(43, 109, 224, 0.1) 40%, transparent 68%);
  --btn-primary-bg: #111113;
  --btn-primary-text: #fafafa;
  --theme-color: #fafafa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

/* ��� Header ��� */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav__logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav__toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn.is-active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.theme-toggle:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.theme-toggle__icon--moon {
  display: none;
}

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

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

/* ��� Buttons ��� */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--text) 5%, transparent);
}

.btn--secondary {
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border-color: var(--border);
  color: var(--text);
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn--secondary:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.btn--play {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  border-color: color-mix(in srgb, var(--green) 35%, transparent);
  color: var(--text);
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn--play:hover {
  background: color-mix(in srgb, var(--green) 22%, transparent);
}

/* ��� Hero ��� */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.15rem 2.75rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.7rem;
}

.hero__content h1 {
  font-size: clamp(1.85rem, 7.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 12ch;
  margin-bottom: 0.85rem;
}

.hero__subtitle {
  font-size: clamp(0.98rem, 3.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 34ch;
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero__actions .btn {
  flex: 1 1 auto;
  min-width: 8.25rem;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  order: -1;
  min-height: 0;
  padding: 0.15rem 0 0.35rem;
}

.hero__glow {
  position: absolute;
  inset: 8% 18%;
  background: var(--glow);
  filter: blur(8px);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero__logo {
  position: relative;
  width: clamp(120px, 38vw, 180px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: float-logo 7s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* ��� Sections ��� */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.15rem;
}

.section__header {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.section__header h2,
.about__inner h2,
.contact__card h2 {
  font-size: clamp(1.55rem, 5.5vw, 2.35rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.section__header p,
.about__inner p,
.contact__card > p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 3.2vw, 1.05rem);
}

/* ��� Apps ��� */

.apps__grid {
  display: grid;
  gap: 1.15rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), border-color 0.25s ease, box-shadow 0.35s var(--ease), background 0.25s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--cyan) 35%, var(--border));
  box-shadow: var(--shadow);
  background: var(--surface-hover);
}

.app-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.15rem;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-soft);
}

.app-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.45rem;
}

.app-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
  min-height: 0;
}

.app-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-card__actions .btn {
  flex: 1 1 auto;
}

/* ��� About ��� */

.about {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.about__inner {
  max-width: 40rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__inner p + p {
  margin-top: 1rem;
}

/* ��� Values ��� */

.values__grid {
  display: grid;
  gap: 1rem;
}

.value-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--text) 18%, var(--border));
  box-shadow: var(--shadow-soft);
}

.value-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ��� Contact ��� */

.contact__card {
  text-align: center;
  padding: 2rem 1.15rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at top, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact__card > p {
  max-width: 28rem;
  margin: 0 auto 1.35rem;
}

.contact__email {
  display: inline-block;
  font-size: clamp(1.05rem, 4.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
  word-break: break-word;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.2s ease;
}

.contact__email:hover {
  opacity: 0.85;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* ��� Footer ��� */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.25rem 2.5rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
}

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

.site-footer__links {
  display: flex;
  gap: 1.25rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--text);
}

/* ��� Reveal ��� */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ��� Responsive ��� */

@media (min-width: 480px) {
  .hero__logo {
    width: clamp(150px, 34vw, 220px);
  }

  .hero {
    padding: 2rem 1.25rem 3.25rem;
    gap: 1.75rem;
  }
}

@media (min-width: 640px) {
  .hero__visual {
    order: 0;
  }

  .hero__logo {
    width: min(52vw, 280px);
  }

  .hero__actions .btn,
  .app-card__actions .btn {
    flex: 0 1 auto;
  }

  .apps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-card {
    padding: 1.5rem;
  }

  .app-card > p {
    min-height: 2.8em;
  }

  .contact__card {
    padding: 2.75rem 1.5rem;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 4.5rem 1.5rem 6rem;
    gap: 2rem;
    min-height: calc(100svh - var(--header-h));
  }

  .hero__visual {
    order: 0;
    min-height: 280px;
  }

  .hero__glow {
    inset: 8% 5%;
  }

  .hero__logo {
    width: min(100%, 460px);
  }

  .hero__eyebrow {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .about__inner {
    padding: 2.5rem 0;
  }

  .nav {
    padding: 0 1.5rem;
  }

  .section {
    padding: 5.5rem 1.5rem;
  }

  .section__header {
    margin-bottom: 2.5rem;
  }

  .apps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .values__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .value-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.1rem;
  }
}

@media (min-width: 1100px) {
  .apps__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 799px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 1rem;
    padding: 1rem 1.25rem 1.35rem;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav__links a {
    padding: 0.85rem 0.9rem;
  }

  .nav__actions {
    justify-content: space-between;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__logo,
  .hero__glow,
  .reveal,
  .btn,
  .app-card,
  .value-card {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
