:root {
  --ink: #0c0e13;
  --slate: #1f2430;
  --mist: #f5f1e8;
  --sun: #f4b266;
  --ember: #c44b40;
  --olive: #3c4a39;
  --paper: #fbf8f2;
  --glass: rgba(255, 255, 255, 0.6);
  --shadow: 0 24px 60px rgba(12, 14, 19, 0.18);
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 20% 20%, #f2e7d5 0, #f6ead5 35%, #fdfbf7 70%);
  color: var(--ink);
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}

.logo img {
  width: auto;
  height: 150px;
  display: block;
  object-fit: contain;
}

.logo img.logo-mobile {
  display: none;
}

.logo img.logo-desktop {
  display: block;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a,
.mobile-menu a {
  text-decoration: none;
  color: var(--slate);
  font-weight: 500;
}

.site-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 36, 48, 0.2);
  font-weight: 600;
  color: var(--slate);
}

.profile-chip .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

button {
  font: inherit;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-actions a,
.mobile-actions a,
.hero-actions a,
.cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

a.solid,
a.ghost,
a.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
}

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

.solid {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 12px 25px rgba(196, 75, 64, 0.25);
}

.ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid rgba(31, 36, 48, 0.2);
}

.outline {
  background: transparent;
  color: var(--slate);
  border: 1px solid rgba(31, 36, 48, 0.25);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(12, 14, 19, 0.12);
}

.site-actions a:hover,
.mobile-actions a:hover,
.hero-actions a:hover,
.cta-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(12, 14, 19, 0.12);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(31, 36, 48, 0.2);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

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

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 52px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.1rem;
  color: var(--slate);
  margin-bottom: 24px;
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--olive);
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(31, 36, 48, 0.7);
}

.hero-card {
  position: relative;
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--slate);
}

.chip {
  background: rgba(244, 178, 102, 0.35);
  color: var(--slate);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.card h2 {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.card li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  margin-right: 10px;
}

section {
  margin-top: 84px;
}

.section-title h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}

.feature-grid,
.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-grid article,
.role-cards article,
.service-stack div {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(12, 14, 19, 0.08);
}

.feature-grid h3,
.role-cards h3,
.service-stack h3 {
  font-family: "Fraunces", serif;
  margin-bottom: 10px;
}

.features p,
.roles p,
.services p {
  color: var(--slate);
}

.services {
  position: relative;
}

.service-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cta {
  display: flex;
  justify-content: center;
}

.cta-card {
  background: linear-gradient(135deg, #15202b, #2c2f3a);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius);
  width: min(900px, 100%);
  box-shadow: var(--shadow);
}

.cta-card h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 12px;
}

.cta-card .ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(31, 36, 48, 0.12);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer h3 {
  font-family: "Fraunces", serif;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.auth-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
  align-items: center;
}

.auth-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.auth-card h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.auth-card p {
  color: var(--slate);
  margin-bottom: 14px;
}

.auth-providers {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.provider-btn {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(31, 36, 48, 0.18);
  background: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.provider-btn span {
  color: rgba(31, 36, 48, 0.6);
  font-size: 0.85rem;
}

.provider-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(12, 14, 19, 0.1);
  border-color: rgba(196, 75, 64, 0.4);
}

.provider-btn:focus-visible {
  outline: 2px solid rgba(196, 75, 64, 0.4);
  outline-offset: 3px;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: rgba(31, 36, 48, 0.5);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: rgba(31, 36, 48, 0.12);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  font-size: 0.85rem;
  color: rgba(31, 36, 48, 0.75);
}

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 36, 48, 0.18);
  font: inherit;
  background: #fff;
}

.auth-form input:focus {
  outline: 2px solid rgba(196, 75, 64, 0.3);
  border-color: rgba(196, 75, 64, 0.6);
}

.auth-meta {
  font-size: 0.85rem;
  color: rgba(31, 36, 48, 0.7);
  margin-top: 8px;
}

.auth-visual {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #1d1f28, #3c4a39);
  color: #fff;
  box-shadow: var(--shadow);
}

.auth-visual h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  margin-bottom: 14px;
}

.auth-visual ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.auth-visual li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  margin-right: 10px;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .logo img {
    height: 150px;
  }

  .logo img.logo-desktop {
    display: none;
  }

  .logo img.logo-mobile {
    display: block;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .site-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .hero-actions,
  .cta-actions,
  .mobile-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-card,
  .auth-visual {
    padding: 24px;
  }

  section {
    margin-top: 64px;
  }

  .cta-card {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text,
  .card,
  .feature-grid article,
  .role-cards article,
  .service-stack div,
  .cta-card {
    animation: fade-in 0.9s var(--ease) both;
  }

  .feature-grid article {
    animation-delay: 0.1s;
  }

  .role-cards article {
    animation-delay: 0.2s;
  }

  .service-stack div {
    animation-delay: 0.3s;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
