:root {
  color-scheme: light;
  --ink: #111615;
  --muted: #66706d;
  --line: rgba(17, 22, 21, 0.12);
  --paper: #ffffff;
  --mist: #f3f7f5;
  --sea: #2aa98a;
  --sea-dark: #13745f;
  --dark: #101716;
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 30px 90px rgba(26, 45, 40, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f8faf9;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.portal-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(42, 169, 138, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(105, 185, 168, 0.12), transparent 30rem),
    #f5f8f7;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(17, 22, 21, 0.08);
  background: rgba(248, 250, 249, 0.8);
  backdrop-filter: blur(24px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--dark);
  color: #d8fff5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.desktop-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a,
.mobile-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #3f4946;
  font-size: 0.92rem;
  font-weight: 650;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  background: rgba(17, 22, 21, 0.06);
}

.desktop-nav .nav-button {
  padding-inline: 18px;
  background: var(--dark);
  color: white;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-weight: 700;
}

.mobile-nav {
  position: fixed;
  inset: 70px 12px auto;
  z-index: 49;
  align-items: stretch;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 70px);
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vw, 120px) clamp(20px, 5vw, 78px);
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 190, 156, 0.18), transparent 66%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--sea-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(3.8rem, 7.8vw, 8.5rem);
  font-weight: 740;
}

.hero h1 span {
  color: #74807c;
}

.hero-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
}

.hero-actions,
.store-actions,
.portal-actions,
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 720;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.button-dark {
  background: var(--dark);
  color: white;
  box-shadow: 0 14px 36px rgba(16, 23, 22, 0.2);
}

.button-dark:hover {
  background: #25302e;
}

.button-glass {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.button-light {
  background: white;
  color: var(--dark);
}

.button-sea {
  background: var(--sea);
  color: white;
  box-shadow: 0 14px 30px rgba(42, 169, 138, 0.2);
}

.button-secondary {
  border: 1px solid var(--line);
  background: #f2f6f4;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 760px);
  border-radius: var(--radius-xl);
  background: #101716;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: min(72vh, 760px);
  object-fit: cover;
  object-position: 54% center;
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1);
}

.hero-visual:hover img {
  transform: scale(1.025);
}

.floating-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  max-width: 360px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(14, 21, 20, 0.7);
  color: white;
  backdrop-filter: blur(20px);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card div > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #5be0be;
  box-shadow: 0 0 0 8px rgba(91, 224, 190, 0.12);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(20px, 5vw, 78px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 20px 60px rgba(26, 45, 40, 0.07);
  backdrop-filter: blur(20px);
}

.proof-strip article {
  padding: 28px;
}

.proof-strip article + article {
  border-left: 1px solid var(--line);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  letter-spacing: -0.04em;
}

.proof-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: clamp(84px, 11vw, 160px) clamp(20px, 5vw, 78px);
}

.intro {
  max-width: 1400px;
}

.intro h2,
.section-heading h2,
.studio h2,
.social h2,
.portal-callout h2 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 5.7vw, 6.6rem);
  font-weight: 720;
}

.intro > p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.6fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 46px;
}

.section-heading > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 18px 50px rgba(26, 45, 40, 0.07);
}

.product-card-dark {
  background: var(--dark);
  color: white;
}

.product-card > span {
  position: relative;
  z-index: 1;
  color: var(--sea-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card-dark > span {
  color: #73e1c3;
}

.product-card h3 {
  position: absolute;
  right: 30px;
  bottom: 94px;
  left: 30px;
  z-index: 1;
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.product-card p {
  position: absolute;
  right: 30px;
  bottom: 24px;
  left: 30px;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.product-card-dark p {
  color: rgba(255, 255, 255, 0.62);
}

.orb {
  position: absolute;
  top: 72px;
  left: 50%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: transform 500ms cubic-bezier(.2, .8, .2, 1);
}

.product-card:hover .orb {
  transform: translateX(-50%) scale(1.07) rotate(5deg);
}

.orb-copper {
  background: radial-gradient(circle at 32% 28%, #f0b08b, #a94f2f 48%, #402018 78%);
  box-shadow: inset -24px -20px 45px rgba(0, 0, 0, 0.28), 0 35px 70px rgba(177, 87, 50, 0.26);
}

.orb-silver {
  background: radial-gradient(circle at 30% 24%, #fff, #aeb8b7 44%, #3f4b49 82%);
  box-shadow: inset -22px -20px 45px rgba(0, 0, 0, 0.25), 0 35px 70px rgba(76, 92, 88, 0.22);
}

.orb-sea {
  background: radial-gradient(circle at 32% 26%, #bcfff0, #39b895 43%, #0d4b3f 84%);
  box-shadow: inset -22px -20px 45px rgba(0, 0, 0, 0.25), 0 35px 70px rgba(42, 169, 138, 0.28);
}

.store-actions {
  justify-content: space-between;
  margin-top: 26px;
}

.text-link {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink);
  font-weight: 720;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  background: #eef4f1;
}

.studio-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.1rem;
}

.feature-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-weight: 680;
}

.feature-list span {
  color: var(--sea-dark);
  font-size: 0.75rem;
}

.studio-media {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #d7ddda;
  box-shadow: var(--shadow);
}

.studio-media img {
  aspect-ratio: 1.15;
  width: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.studio-media:hover img {
  transform: scale(1.03);
}

.media-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: white;
}

.media-caption span {
  color: var(--muted);
}

.social-card {
  display: flex;
  min-height: 520px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  padding: clamp(32px, 6vw, 78px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 24%, rgba(102, 241, 206, 0.36), transparent 27rem),
    linear-gradient(135deg, #12201d, #0a1110);
  color: white;
  box-shadow: var(--shadow);
}

.social-card .eyebrow {
  color: #72e2c4;
}

.social-card h2 {
  max-width: 900px;
  margin-bottom: 0;
}

.portal-callout {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.portal-callout > div {
  max-width: 880px;
}

.portal-callout p:last-child {
  max-width: 680px;
  color: var(--muted);
}

footer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px clamp(20px, 5vw, 78px);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
}

footer > div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 650;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1);
}

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

.portal-header {
  position: relative;
}

.portal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 100px;
}

.portal-shell-wide {
  width: min(1440px, calc(100% - 32px));
}

.portal-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.portal-intro h1,
.login-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.portal-intro p,
.login-card > p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
}

.login-wrap {
  display: grid;
  min-height: calc(100vh - 70px);
  place-items: center;
  padding: 40px 16px;
}

.login-card,
.panel,
.invoice-card,
.metric-card {
  border: 1px solid rgba(17, 22, 21, 0.1);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 70px rgba(26, 45, 40, 0.1);
  backdrop-filter: blur(22px);
}

.login-card {
  width: min(520px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border-radius: 32px;
}

.login-card .brand-symbol {
  margin-bottom: 36px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
  color: #39423f;
  font-size: 0.86rem;
  font-weight: 700;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 22, 21, 0.14);
  border-radius: 14px;
  outline: 0;
  background: rgba(248, 250, 249, 0.9);
  color: var(--ink);
  font-weight: 520;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 4px rgba(42, 169, 138, 0.12);
}

.notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef6f3;
  color: #245b4e;
  font-size: 0.9rem;
}

.notice.error {
  background: #fff0ef;
  color: #9b3933;
}

.dashboard[hidden],
.login-wrap[hidden],
[hidden] {
  display: none !important;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 22px;
  border-radius: 22px;
}

.metric-card span,
.metric-card strong {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.metric-card strong {
  margin-top: 8px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}

.dashboard-column {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 24px;
  border-radius: 24px;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-header h2 {
  margin-bottom: 6px;
  font-size: 1.7rem;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.customer-list,
.invoice-list {
  display: grid;
  gap: 10px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.list-row strong,
.list-row span {
  display: block;
}

.list-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.item-builder {
  display: grid;
  gap: 10px;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 130px auto;
  gap: 8px;
}

.item-row input {
  min-width: 0;
}

.icon-button {
  min-width: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  cursor: pointer;
}

.invoice-card {
  overflow: hidden;
  border-radius: 24px;
}

.invoice-card + .invoice-card {
  margin-top: 14px;
}

.invoice-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
}

.invoice-summary h3 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.invoice-summary p {
  margin: 0;
  color: var(--muted);
}

.invoice-total {
  text-align: right;
}

.invoice-total strong {
  display: block;
  font-size: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e7f6f1;
  color: #1c755f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill.paid {
  background: #e8f4ff;
  color: #27699b;
}

.status-pill.void {
  background: #f1f1f1;
  color: #747474;
}

.status-pill.draft {
  background: #fff5dc;
  color: #8b6812;
}

.invoice-details {
  padding: 0 22px 22px;
}

.invoice-details table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-details th,
.invoice-details td {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.invoice-details th:last-child,
.invoice-details td:last-child {
  text-align: right;
}

.empty-card {
  padding: 44px 24px;
  border: 1px dashed rgba(17, 22, 21, 0.2);
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
}

.small-select {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

  .hero-visual {
    min-height: 58vh;
  }

  .hero-visual img {
    min-height: 58vh;
  }

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

  .proof-strip article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-strip article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .section-heading,
  .studio,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    min-height: 420px;
  }

  .social-card,
  .portal-callout,
  footer {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-strip article:nth-child(3) {
    border-left: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 18px;
  }

  .studio {
    padding-inline: 18px;
  }

  .social-card {
    min-height: 430px;
  }

  .portal-intro {
    align-items: start;
    flex-direction: column;
  }

  .form-grid.two-column,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .item-row {
    grid-template-columns: 1fr 76px 110px auto;
  }

  .invoice-summary {
    grid-template-columns: 1fr;
  }

  .invoice-total {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

@media print {
  .topbar,
  .portal-intro,
  .portal-actions,
  .button,
  .login-wrap {
    display: none !important;
  }

  body,
  body.portal-body {
    background: white;
  }

  .portal-shell,
  .invoice-card {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
