:root {
  color-scheme: light;
  --ink: #06111f;
  --muted: #607085;
  --line: #dce4ee;
  --panel: #ffffff;
  --soft: #f4f8fb;
  --blue: #35aee7;
  --blue-strong: #1488c8;
  --cyan: #35d2e7;
  --dark: #07111d;
  --shadow: 0 24px 70px rgba(6, 17, 31, .14);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

main {
  flex: 1;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--blue);
  color: #001322;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: transparent;
  color: #fff;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateY(8px);
}

.brand,
.site-nav,
.nav-toggle {
  position: relative;
  z-index: 1;
}

.home-page .site-header {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
}

.sub-page .site-header {
  color: var(--ink);
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  transform: none;
}

.sub-page .site-nav a {
  color: var(--muted);
}

.sub-page .site-nav a:hover,
.sub-page .site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(6, 17, 31, .06);
}

.sub-page .nav-toggle {
  color: var(--ink);
  border-color: var(--line);
}

.login-page.sub-page .site-header {
  color: #fff;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.login-page.sub-page .site-nav a {
  color: rgba(255, 255, 255, .84);
}

.login-page.sub-page .site-nav a:hover,
.login-page.sub-page .site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.login-page.sub-page .nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
}

.brand {
  transform: translate(10px, 11px);
}

.home-page .brand {
  transform: translate(10px, 11px);
}

.home-page .hero {
  min-height: 100vh;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand > img {
  width: 118px;
  filter: contrast(1.22) brightness(1.08) saturate(1.08);
}

.brand .brand-logo {
  width: clamp(210px, 17vw, 285px);
  max-width: calc(100vw - 150px);
  height: auto;
  display: block;
  filter: contrast(1.08) brightness(1.04) saturate(1.03);
}

.footer-smartidea-logo {
  width: 130px;
  height: auto;
  display: block;
  filter: contrast(1.12) brightness(1.06) saturate(1.05);
}

.brand-copy {
  display: grid;
  gap: 8px;
  line-height: 1;
}

.brand-main {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  position: relative;
  padding-right: 102px;
  padding-bottom: 9px;
}

.brand-copy strong {
  color: #ffffff;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-check {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 128px;
  height: 28px;
  margin-bottom: 0;
  overflow: visible;
}

.brand-check path {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.brand-sublogo {
  width: 98px;
  height: auto;
  opacity: .88;
  filter: contrast(1.18) brightness(1.08) saturate(1.08);
}

.brand-byline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.brand-byline em {
  color: rgba(216, 237, 248, .78);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.site-nav .nav-login {
  margin-left: 6px;
  color: #06111f;
  background: var(--cyan);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  padding: 9px 12px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 17, 31, .94) 0%, rgba(6, 17, 31, .82) 45%, rgba(6, 17, 31, .48) 100%),
    linear-gradient(0deg, rgba(6, 17, 31, .16), rgba(6, 17, 31, .16)),
    url("hero.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .66fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  padding: clamp(62px, 9vw, 112px) 0;
}

.hero-copy {
  transform: translateX(clamp(-24px, -1.6vw, -8px));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #05111f;
  background: var(--cyan);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .08);
}

.button.secondary.dark {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.workflow-panel {
  width: min(100%, 420px);
  justify-self: end;
  border: 0;
  border-radius: 14px;
  background: rgba(24, 34, 46, .56);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px);
  padding: clamp(20px, 2.4vw, 28px);
}

.panel-head {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 6px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  text-align: center;
}

.panel-head strong {
  color: #fff;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.2;
}

.workflow-list {
  display: grid;
  grid-template-rows: repeat(3, 118px);
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
}

.workflow-list li::marker {
  content: "";
}

.workflow-list li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  min-height: 0;
  align-items: start;
}

.workflow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 60px;
  bottom: -12px;
  width: 3px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(53, 174, 231, .25);
}

.workflow-list li > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #04111f;
  background: var(--cyan);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(53, 210, 231, .16);
  position: relative;
  z-index: 1;
}

.workflow-list strong {
  display: block;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.18;
}

.workflow-list p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(14px, 1.18vw, 16px);
  line-height: 1.55;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 116px) 0;
}

.section.compact {
  padding-bottom: clamp(54px, 7vw, 84px);
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section h2,
.page-hero h1,
.login-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
}

.section-head p + h2 { margin-top: 0; }

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

.benefit-grid article,
.pricing-card,
.contact-card,
.login-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 36px rgba(6, 17, 31, .06);
  padding: clamp(22px, 3vw, 32px);
}

.benefit-grid h3,
.pricing-card h2 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.benefit-grid p,
.section p,
.page-hero p,
.contact-card li,
.price-note {
  color: var(--muted);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #05111f;
  background: var(--cyan);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(30px, 6vw, 88px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list div,
.price-strip div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 18px;
}

.feature-list span,
.price-strip span {
  color: var(--muted);
}

.pricing-preview {
  border-top: 1px solid var(--line);
}

.price-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.price-strip .highlight {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.price-strip .highlight span { color: rgba(255, 255, 255, .72); }

.text-link {
  color: var(--blue-strong);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px clamp(18px, 4vw, 56px);
  color: #fff;
  background: var(--dark);
}

.site-footer div,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-weight: 700;
}

.page-hero {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 126px) 0 34px;
}

.pricing-card {
  position: relative;
  min-height: 100%;
}

.pricing-card.featured {
  color: #fff;
  border-color: var(--ink);
  background: linear-gradient(180deg, #102136, #06111f);
  transform: translateY(-12px);
}

.pricing-card.featured .price-note,
.pricing-card.featured li {
  color: rgba(255, 255, 255, .76);
}

.plan {
  margin: 0;
  color: var(--blue-strong);
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card.featured .plan { color: var(--cyan); }

.pricing-card ul,
.contact-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding-left: 20px;
}

.contact-layout,
.login-shell {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(53, 174, 231, .22);
  border-color: var(--blue);
}

.small-note {
  font-size: 14px;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(6, 17, 31, .94), rgba(6, 17, 31, .72)),
    url("hero.jpg") center / cover fixed no-repeat;
  color: #fff;
}

.login-page main {
  flex: 1;
  display: grid;
}

.login-shell {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) 0;
}

.login-copy p {
  color: rgba(255, 255, 255, .76);
}

.login-card {
  color: var(--ink);
}

.login-card button[disabled],
.login-card input[disabled] {
  cursor: not-allowed;
  opacity: .72;
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.app-page {
  min-height: 100vh;
  background: #f3f7fb;
  color: var(--ink);
}

.app-header {
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 10px 28px rgba(6, 17, 31, .08);
}

.logout-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.app-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
  display: grid;
  grid-template-columns: 238px 1fr;
  gap: 24px;
  align-items: start;
}

.app-sidebar,
.app-panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(6, 17, 31, .08);
}

.app-sidebar {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.app-sidebar a {
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.app-sidebar a:hover,
.app-sidebar a.active {
  color: var(--ink);
  background: rgba(53, 174, 231, .12);
}

.app-workspace {
  min-width: 0;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.app-topbar h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
}

.muted {
  color: var(--muted);
}

.metric-grid,
.app-grid {
  display: grid;
  gap: 18px;
}

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

.metric-card {
  padding: 22px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--blue-strong);
  font-size: 44px;
  line-height: 1;
}

.app-grid {
  grid-template-columns: 1.18fr .82fr;
}

.app-panel {
  padding: 24px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 28px;
}

.status-pill {
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--blue-strong);
  background: rgba(53, 174, 231, .14);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-list {
  display: grid;
  gap: 10px;
}

.receipt-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
}

.receipt-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.receipt-list strong {
  color: var(--blue-strong);
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .site-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(6, 17, 31, .88);
    backdrop-filter: blur(14px);
    transform: none;
  }

  .sub-page .site-header {
    background: rgba(255, 255, 255, .94);
  }

  .login-page.sub-page .site-header {
    background: rgba(6, 17, 31, .88);
  }

  .home-page .site-header {
    position: fixed;
  }

  .brand > img { width: 118px; }

  .brand .brand-logo {
    width: 176px;
    max-width: calc(100vw - 92px);
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 10px;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    text-align: center;
    background: rgba(255, 255, 255, .08);
  }

  .sub-page .site-nav a {
    background: rgba(6, 17, 31, .06);
  }

  .site-nav .nav-login {
    margin-left: 0;
    color: #06111f;
    background: var(--cyan);
  }

  .hero-grid,
  .split,
  .contact-layout,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .workflow-panel {
    max-width: 620px;
  }

  .workflow-list {
    grid-template-rows: none;
  }

  .workflow-list li {
    min-height: 112px;
  }

  .benefit-grid,
  .pricing-grid,
  .price-strip {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured { transform: none; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-shell,
  .app-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }

  .app-topbar {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 12px;
  }

  .brand {
    gap: 8px;
    transform: none;
  }

  .brand > img {
    width: 108px;
  }

  .brand .brand-logo {
    width: 150px;
    max-width: calc(100vw - 78px);
  }

  .footer-smartidea-logo {
    width: 120px;
  }

  .brand-copy strong {
    font-size: 34px;
  }

  .brand-main {
    padding-right: 76px;
    padding-bottom: 8px;
  }

  .brand-check {
    width: 98px;
    height: 24px;
  }

  .brand-check path {
    stroke-width: 9;
  }

  .brand-sublogo {
    width: 88px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(6, 17, 31, .88), rgba(6, 17, 31, .74)),
      url("hero.jpg") center / cover no-repeat;
  }

  .hero-grid {
    width: min(100% - 24px, 1180px);
    padding: 108px 0 40px;
    gap: 24px;
  }

  .hero-copy {
    transform: none;
  }

  h1 {
    font-size: 34px;
    line-height: 1.06;
  }

  .hero-title-line {
    display: block;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .site-footer nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }

  .workflow-panel {
    padding: 14px;
  }

  .workflow-list {
    gap: 14px;
    list-style: none;
    list-style-type: none;
  }

  .workflow-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    min-height: auto;
    padding: 0;
    list-style: none;
  }

  .workflow-list li:not(:last-child)::after {
    display: none;
  }

  .workflow-list li > span {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .section,
  .page-hero,
  .login-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
}
