/* Randorn — randorn.xyz · Light corporate SaaS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --surface-3: #eef1f5;
  --text: #4b5563;
  --heading: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-light: #d1d5db;
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --accent-hover: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.08);
  --accent-glow: rgba(99, 102, 241, 0.2);
  --success: #059669;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
  --shadow-sm: 0 4px 16px rgba(17, 24, 39, 0.06);
  --shadow-card: 0 1px 3px rgba(17, 24, 39, 0.06), 0 8px 24px rgba(17, 24, 39, 0.04);
  --max: 1180px;
  --header: 72px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.2;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.025em;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { color: var(--text); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent-dark); color: #fff; padding: .75rem 1rem; z-index: 9999;
  font-family: var(--font); font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 251, 252, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header); gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.15rem; color: var(--heading); text-decoration: none;
  font-family: var(--font);
}
.logo span { color: var(--accent-dark); }
.logo__mark { width: 34px; height: 34px; border-radius: 8px; }
.nav-toggle {
  display: none; padding: .5rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
  font-family: var(--font); font-weight: 600; font-size: .875rem;
  color: var(--heading); cursor: pointer;
}
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem 1.35rem; align-items: center; }
.nav-main a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  font-size: .9rem; transition: color .2s;
}
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--accent-dark); }
.nav-cta { margin-left: .5rem; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-main {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem; box-shadow: var(--shadow);
  }
  .nav-main.is-open { display: block; }
  .nav-main ul { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .nav-cta { margin-left: 0; margin-top: .5rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.35rem; border-radius: var(--radius);
  font-family: var(--font); font-weight: 600; font-size: .9rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn--primary {
  background: var(--accent-dark); color: #fff; border-color: var(--accent-dark);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent); border-color: var(--accent);
  color: #fff; box-shadow: 0 6px 20px var(--accent-glow);
}
.btn--outline {
  background: var(--surface); color: var(--heading);
  border-color: var(--border-light);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn--ghost { background: var(--surface-2); color: var(--heading); border-color: var(--border); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.btn--lg { padding: .85rem 1.75rem; font-size: .95rem; }

/* Hero */
.hero {
  position: relative; padding: 4.5rem 0 3.5rem; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(99, 102, 241, 0.06), transparent);
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center;
  position: relative;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: 1.25rem;
}
.hero__badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); margin: 0 0 1.25rem; }
.hero__lead { font-size: 1.125rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.75rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  font-size: .875rem; color: var(--muted);
}
.hero__meta strong { display: block; color: var(--heading); font-weight: 600; }
.hero__visual { position: relative; }
.hero__visual img, .hero__visual svg {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.hero__float {
  position: absolute; bottom: -1rem; left: -1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.hero__float-card {
  padding: .65rem 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); font-size: .8rem;
}
.hero__float-card strong { display: block; color: var(--accent-dark); font-family: var(--font); }

@media (max-width: 900px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 520px; margin: 0 auto; }
  .hero__float { display: none; }
}

/* Logo bar & ticker */
.logo-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem;
  padding: 1.75rem 1.25rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: .85rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
.ticker {
  overflow: hidden; padding: .85rem 0;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.ticker__track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: ticker 40s linear infinite;
  font-size: .8rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.ticker__track span { white-space: nowrap; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* Sections */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--soft { background: var(--surface-2); }
.section__head { text-align: center; max-width: 38rem; margin: 0 auto 3rem; }
.section__head h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin: 0 0 .75rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section__label {
  display: inline-block; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark);
  margin-bottom: .75rem;
}

/* Cards & grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.card p { font-size: .95rem; color: var(--muted); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; }

.feature-card { display: flex; flex-direction: column; height: 100%; }
.feature-card img, .feature-card svg { margin-bottom: 1.25rem; border-radius: var(--radius); }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  text-align: center; padding: 2.5rem 0;
}
.stat-row strong {
  display: block; font-size: 2rem; font-family: var(--font);
  color: var(--accent-dark); font-weight: 800;
}
.stat-row span { font-size: .875rem; color: var(--muted); }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split--reverse .split__visual { order: 2; }
.split--reverse .split__content { order: 1; }
@media (max-width: 800px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__visual, .split--reverse .split__content { order: unset; }
}
.split__content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 1rem; }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li {
  position: relative; padding-left: 1.75rem; margin-bottom: .65rem;
  font-size: .95rem; color: var(--text);
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .45rem;
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%234f46e5' d='M10 3L4.5 8.5 2 6' stroke='%234f46e5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* Pricing */
.pricing-toggle {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin-bottom: 2.5rem; font-size: .9rem;
}
.pricing-toggle button {
  padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-family: var(--font); font-weight: 600;
  font-size: .85rem; cursor: pointer; color: var(--muted);
}
.pricing-toggle button.is-active {
  background: var(--accent-dark); color: #fff; border-color: var(--accent-dark);
}
.pricing-card { text-align: center; position: relative; }
.pricing-card--featured {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.pricing-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: .25rem .75rem; border-radius: 999px;
  background: var(--accent-dark); color: #fff; font-size: .7rem; font-weight: 600;
}
.pricing-card h3 { font-size: 1.25rem; }
.pricing-card__price {
  font-size: 2.5rem; font-family: var(--font); font-weight: 800;
  color: var(--heading); margin: 1rem 0 .25rem;
}
.pricing-card__price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-card ul {
  list-style: none; padding: 0; margin: 1.5rem 0; text-align: left;
  font-size: .9rem;
}
.pricing-card li {
  padding: .45rem 0; border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.pricing-card li:last-child { border-bottom: none; }

/* Page hero */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.page-hero h1 { font-size: clamp(1.85rem, 3.5vw, 2.5rem); margin: 0 0 .75rem; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 36rem; }
.page-hero__art { width: 280px; }
@media (max-width: 700px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__art { width: 100%; max-width: 320px; margin: 0 auto; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { margin-bottom: 1.75rem; }
.contact-block h3 { font-size: .95rem; margin: 0 0 .35rem; }
.contact-block address { font-style: normal; font-size: .95rem; line-height: 1.6; }
.contact-form h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .35rem; color: var(--heading); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: .95rem;
  background: var(--surface); color: var(--heading); transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-status { font-size: .875rem; color: var(--accent-dark); margin-top: .75rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 1.25rem 0; cursor: pointer; font-family: var(--font);
  font-weight: 600; color: var(--heading); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.25rem; color: var(--accent); font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__body { padding: 0 0 1.25rem; font-size: .95rem; color: var(--muted); }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.legal p, .legal li { font-size: .95rem; color: var(--muted); }
.legal ul { padding-left: 1.25rem; }
.legal .updated { font-size: .875rem; color: var(--muted); margin-bottom: 2rem; }

/* CTA band */
.cta-band {
  padding: 4rem 0; text-align: center;
  background: linear-gradient(135deg, var(--accent-dark) 0%, #7c3aed 100%);
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .75rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 32rem; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.cta-band .btn--primary { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cta-band .btn--primary:hover { background: var(--surface-2); }
.cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.cta-band .btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* Footer */
.site-footer {
  margin-top: auto; padding: 3.5rem 0 2rem;
  background: var(--heading); color: #9ca3af;
  font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; line-height: 1.6; }
.footer-col h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; margin: 0 0 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #9ca3af; text-decoration: none; font-size: .875rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .8rem;
}
.footer-bottom a { color: #9ca3af; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  padding: 1rem 1.25rem; background: var(--surface);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 30px rgba(0,0,0,.08);
  display: none; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; font-size: .875rem; max-width: 52rem; color: var(--muted); }
.cookie-banner a { color: var(--accent-dark); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.stagger.is-visible > *:nth-child(1) { transition-delay: .05s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .1s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .15s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .2s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .25s; opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .3s; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
}

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-family: var(--font); font-weight: 600; color: var(--heading); background: var(--surface-2); }
td { color: var(--muted); }

/* Testimonials */
.testimonial {
  padding: 1.75rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.testimonial blockquote { margin: 0 0 1rem; font-size: .95rem; color: var(--text); font-style: italic; }
.testimonial cite { font-size: .85rem; color: var(--muted); font-style: normal; }
.testimonial cite strong { display: block; color: var(--heading); font-weight: 600; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }
