/* Serafim Ivanov — Lifecycle Systems for SaaS & FinTech
   Hand-coded stylesheet replacing the Tilda export. */

:root {
  --bg: #0f131a;
  --bg-alt: #1e2634;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.5);
  --accent: #2f5bff;
  --accent-hover: #4a70ff;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --max-width: 1160px;
  --font: "Inter", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 19, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 16px;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #fff;
  color: #10131a;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #e7e9ee;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--accent);
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Sections */
section {
  padding: 36px 0;
}

#book {
  padding-bottom: 20px;
}

.section-alt {
  background: var(--bg-alt);
  padding-top: 72px;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.2;
}

h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}

h3 {
  font-size: 20px;
}

.section-heading {
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

/* Hero */
.hero {
  padding: 64px 0 24px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-subhead {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 300;
  margin-bottom: 20px;
}

.hero-subhead u {
  text-decoration-color: var(--accent);
}

.hero-copy p {
  color: var(--text-dim);
  font-size: 19px;
  max-width: 46ch;
}

.hero-stats {
  margin-top: 8px;
  color: var(--text);
  font-weight: 500;
}

.hero-portrait {
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-portrait img {
  width: 100%;
  height: auto;
}

/* Results cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-dim);
  margin: 0;
  font-size: 16px;
}

/* Why choose */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.reason {
  text-align: left;
}

.reason-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(47, 91, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.reason-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
}

.reason p {
  color: var(--text-dim);
  font-size: 18px;
  margin: 0;
}

.reason strong {
  color: var(--text);
}

/* Process steps */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.step-number {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0;
}

/* FAQ */
.faq-heading {
  margin-top: 64px;
  margin-bottom: 8px;
}

.faq-heading h3 {
  font-size: 22px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-size: 18px;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-faint);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--text-dim);
  margin: 0 0 22px;
  padding: 0 4px;
  font-size: 16px;
  max-width: 70ch;
}

/* About */
.about .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 420px;
}

.about-portrait img {
  width: 100%;
  height: auto;
}

.about-copy p {
  color: var(--text-dim);
  font-size: 17px;
}

.about-copy .divider {
  width: 56px;
  height: 3px;
  background: var(--accent);
  border: 0;
  margin: 0 0 24px;
}

/* Booking */
.booking-intro {
  max-width: 60ch;
  margin-bottom: 40px;
}

.booking-intro p {
  color: var(--text-dim);
  font-size: 17px;
}

#my-cal-inline-30min {
  width: 100%;
  min-height: 600px;
}

#my-cal-inline-30min iframe {
  width: 100%;
}

.cal-fallback {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 720px;
}

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: var(--accent);
}

.contact-list .arrow {
  opacity: 0.5;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  font-size: 15px;
  color: var(--text-faint);
}

.site-footer h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.footer-tagline {
  color: var(--text-dim);
  margin: 0 0 28px;
}

.footer-legal {
  max-width: 70ch;
  line-height: 1.6;
}

.footer-legal p {
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.footer-links a {
  text-decoration: underline;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--text);
}

/* Static content page (email policy) */
.policy main {
  padding: 64px 0 96px;
}

.policy .wrap {
  max-width: 760px;
}

.policy h1 {
  margin-bottom: 8px;
}

.policy .updated {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 40px;
}

.policy h2 {
  font-size: 22px;
  margin-top: 40px;
}

.policy p,
.policy li {
  color: var(--text-dim);
  font-size: 16px;
}

.policy a {
  color: var(--accent);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: var(--text);
}

/* Responsive */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

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

  .hero-portrait {
    max-width: 360px;
  }

  .card-grid,
  .reason-grid,
  .step-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  section {
    padding: 32px 0;
  }

  .section-alt {
    padding-top: 48px;
  }

  .hero {
    padding: 40px 0 24px;
  }
}
