/* ============================================
   AtsisakykExcel – Premium SaaS Landing Page
   ============================================ */

:root {
  --color-bg: #fafbfc;
  --color-bg-alt: #f0f2f5;
  --color-surface: #ffffff;
  --color-text: #1a1d26;
  --color-text-muted: #5c6370;
  --color-text-light: #8b919a;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #eff6ff;
  --color-accent: #0ea5e9;
  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-border: #e5e7eb;
  --color-border-light: #f0f1f3;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 64px rgba(37, 99, 235, 0.12);

  --header-height: 72px;
  --container: 1120px;
  --transition: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }

/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__globe {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.logo__globe-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.logo__wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
}

.logo__excel {
  color: #217346;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav a:hover { color: var(--color-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */

.hero {
  padding: calc(var(--header-height) + 64px) 0 80px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions { margin-bottom: 32px; }

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.hero__checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--color-success-bg);
  color: var(--color-success);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

/* Hero visual */

.hero-compare {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 360px;
  margin: 0 auto;
}

.hero-compare__panel {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.hero-compare__panel--excel {
  border-color: #d1d5db;
  background: #fafafa;
}

.hero-compare__panel--web {
  border-color: #93c5fd;
  background: #f0f7ff;
}

.hero-compare__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero-compare__panel--excel .hero-compare__label { color: #217346; }
.hero-compare__panel--web .hero-compare__label { color: var(--color-primary-dark); }

.hero-compare__table {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 14px;
  font-size: 12px;
}

.hero-compare__table--excel {
  border-color: #d1d5db;
}

.hero-compare__table--web {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.hero-compare__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hero-compare__row span {
  padding: 7px 8px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-compare__row span:last-child { border-right: none; }
.hero-compare__row:last-child span { border-bottom: none; }

.hero-compare__table--excel .hero-compare__row--head span {
  background: #217346;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
}

.hero-compare__table--excel .hero-compare__row:not(.hero-compare__row--head) span {
  background: #fff;
}

.hero-compare__table--excel .hero-compare__row:not(.hero-compare__row--head):nth-child(even) span {
  background: #f9fafb;
}

.hero-compare__table--web .hero-compare__row--head span {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.hero-compare__table--web .hero-compare__row:not(.hero-compare__row--head) span {
  background: #fff;
}

.hero-compare__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-compare__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  padding: 6px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.hero-compare__tag--bad {
  background: #fff;
  color: #7f1d1d;
  border: 1px solid #fecaca;
}

.hero-compare__tag--good {
  background: #fff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

.hero-compare__arrow {
  text-align: center;
  font-size: 22px;
  color: var(--color-primary);
  font-weight: 600;
  padding: 10px 0;
  line-height: 1;
}

/* ---- Sections ---- */

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__header p {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- Cards ---- */

.cards {
  display: grid;
  gap: 20px;
}

.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

.card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card--problem {
  border-color: var(--color-border-light);
}

.card--service {
  background: var(--color-surface);
}

/* ---- Highlight quote ---- */

.highlight-quote {
  margin-top: 48px;
  text-align: center;
  padding: 32px 40px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.highlight-quote p {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  font-style: italic;
}

/* ---- Transform flow ---- */

.transform-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 48px;
}

.transform-step {
  text-align: center;
  padding: 24px 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.transform-step__icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.transform-step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.transform-step p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.transform-arrow {
  font-size: 22px;
  color: var(--color-primary);
  padding: 8px 0;
  font-weight: 600;
}

.benefit-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit-pill {
  background: var(--color-primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
}

.benefit-pill strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--color-text);
}

.benefit-pill span {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---- Comparison table ---- */

.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison th,
.comparison td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.comparison th {
  font-size: 14px;
  font-weight: 600;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison th:first-child { width: 30%; }
.comparison th:nth-child(2),
.comparison th:nth-child(3) { width: 35%; text-align: center; }

.comparison td:first-child {
  font-weight: 500;
  font-size: 15px;
}

.comparison td:nth-child(2),
.comparison td:nth-child(3) {
  text-align: center;
}

.comparison tbody tr:last-child td { border-bottom: none; }

.comparison tbody tr:hover { background: var(--color-bg); }

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
}

.badge--bad {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.badge--good {
  background: var(--color-success-bg);
  color: var(--color-success);
}

/* ---- Process ---- */

.process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.process-step:hover { box-shadow: var(--shadow-md); }

.process-step__number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
}

.process-step__content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-step__content p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ---- Industries ---- */

.industries {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.industry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  transition: all var(--transition);
}

.industry:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.industry__icon { font-size: 20px; }

.industries__note {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- FAQ ---- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: #bfdbfe;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-light);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--color-primary);
}

.faq-item summary:hover { color: var(--color-primary); }

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- CTA ---- */

.cta {
  padding: 96px 0 112px;
}

.cta__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 48px;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #2563eb 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-xl);
}

.cta__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.cta__inner > p {
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-form-area {
  width: 100%;
}

.cta-form-area.is-success .cta-form {
  display: none !important;
}

.cta-form-area.is-success .cta-success {
  display: block;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.cta-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cta-form input,
.cta-form textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: border-color var(--transition), background var(--transition);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.cta-form textarea { resize: vertical; min-height: 80px; }

.cta-form__label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: -4px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cta-form__feedback {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.cta-form__feedback--error {
  background: rgba(254, 226, 226, 0.15);
  border: 1px solid rgba(252, 165, 165, 0.5);
  color: #fecaca;
}

.cta-success {
  display: none;
  text-align: center;
  padding: 24px 16px 8px;
  animation: ctaSuccessIn 0.4s ease;
}

.cta-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(167, 243, 208, 0.6);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  color: #a7f3d0;
}

.cta-success__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-success__text {
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.9;
  max-width: 420px;
  margin: 0 auto;
}

@keyframes ctaSuccessIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-form .btn--primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
}

.cta-form .btn--primary:hover {
  background: #f0f4ff;
  transform: translateY(-1px);
}

.cta__note {
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.7;
}

/* ---- Footer ---- */

.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer__brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: flex-end;
}

.footer__links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--color-text); }

.footer__copy {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--color-text-light);
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.footer__copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__copy a:hover {
  color: var(--color-text);
}

/* ---- Animations ---- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 40px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header .btn--sm { display: none; }

  .nav-toggle { display: flex; }

  .nav--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__checks { justify-content: center; }
  .hero__visual { display: none; }

  .cards--3,
  .cards--4 { grid-template-columns: 1fr; }

  .benefit-pills { grid-template-columns: 1fr; }

  .process { grid-template-columns: 1fr; }

  .cta-form__fields { grid-template-columns: 1fr; }

  .cta__inner { padding: 40px 24px; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }

  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .highlight-quote p { font-size: 17px; }
  .highlight-quote { padding: 24px; }
}
