/* ============================================================
   Timeless Automations — Multi-sector redesign
   Inspired by modern SaaS design (Klipboard style)
   Accent: deep teal-blue (#1B4B6B)
   ============================================================ */

:root {
  --accent: #1B4B6B;
  --accent-soft: #E8F1F5;
  --accent-hover: #143A54;
  --text: #1A2332;
  --text-muted: #5A6577;
  --bg: #FFFFFF;
  --bg-alt: #F5F8FA;
  --border: #D8E2E8;
  --success: #10B981;
  --error: #EF4444;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(27, 75, 107, 0.06), 0 8px 24px rgba(27, 75, 107, 0.06);
  --shadow-lg: 0 4px 6px rgba(27, 75, 107, 0.07), 0 20px 40px rgba(27, 75, 107, 0.1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
  --max-narrow: 860px;
  --header-h: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-hover);
}

/* ---- Container ---- */
.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.logo:hover {
  color: var(--accent-hover);
}

.nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover {
  color: var(--accent);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.lang-btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.2s ease;
}
.lang-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.lang-btn.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lang-sep {
  color: var(--border);
  font-size: 0.75rem;
  user-select: none;
}

/* ---- Hero ---- */
.hero {
  padding: 6rem 0 5.5rem;
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgba(232, 241, 245, 0) 100%);
}

.hero-inner {
  max-width: var(--max-narrow);
  text-align: center;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-sub {
  margin: 0 0 2.5rem;
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 75, 107, 0.2);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* ---- Sections ---- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-cta {
  background: linear-gradient(180deg, rgba(232, 241, 245, 0) 0%, var(--accent-soft) 100%);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.section-intro {
  margin: 0 0 3rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42em;
  line-height: 1.65;
}

/* ---- Sector Grid ---- */
.sector-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.sector-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.sector-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.sector-arrow {
  position: absolute;
  bottom: 2rem;
  right: 1.75rem;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.sector-card:hover .sector-arrow {
  opacity: 1;
  transform: translateX(0);
}

.sector-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.sector-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.sector-card p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.sector-btn {
  align-self: flex-start;
  background: transparent;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.sector-btn:hover {
  color: var(--accent-hover);
}

/* ---- Sector Detail Sections ---- */
.section-detail {
  background: var(--bg);
}

.back-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}
.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 11px;
  margin-bottom: 1.25rem;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Flow Diagram ---- */
.flow-section {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
}

.flow-title {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
}

.flow-diagram {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.flow-step {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  min-width: 140px;
  text-align: center;
}

.flow-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.flow-arrow {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Demo CTA ---- */
.demo-cta {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}

.demo-cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.demo-cta p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

/* ---- Benefits ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.benefit-card {
  text-align: left;
}

.benefit-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 11px;
  margin-bottom: 1.25rem;
}

.benefit-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.benefit-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- Steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.step-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.practice-note {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
}

.practice-note p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 50em;
  margin-inline: auto;
}

/* ---- Founder Note ---- */
.founder-note {
  max-width: var(--max-narrow);
  text-align: center;
}

.founder-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 42em;
  margin-inline: auto;
}

.founder-name {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.founder-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.founder-links {
  margin: 0;
}

.founder-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
.founder-link:hover {
  color: var(--accent-hover);
}

/* ---- Contact Form ---- */
.contact-form-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #10B981;
}

.form-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #EF4444;
}

.form-error a {
  color: #991B1B;
  font-weight: 600;
}

/* ---- Footer ---- */
.site-footer {
  padding: 3.5rem 0 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 3rem;
  margin-bottom: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.footer-tagline {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .sector-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  
  .sector-grid, .sector-grid-home {
    grid-template-columns: 1fr;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .flow-diagram {
    flex-direction: column;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }
  
  .container {
    width: min(100% - 2rem, var(--max));
  }
  
  .hero {
    padding: 4rem 0 3.5rem;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .sector-grid {
    grid-template-columns: 1fr;
  }
  
  .logo {
    max-width: 180px;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .btn,
  .sector-card,
  .back-btn,
  a {
    transition: none;
  }
}
