/* ==========================================================================
   KRC Hosting design system
   Purple + pastel + white + premium SaaS hosting
   ========================================================================== */

:root {
  --primary: #7C5CFC;
  --primary-dark: #6246D9;
  --primary-light: #A78BFA;
  --lavender: #DDD6FE;
  --lavender-soft: #F3F0FF;
  --background: #FAF9FF;
  --white: #FFFFFF;
  --text: #17151F;
  --text-muted: #6F6B7A;
  --pink: #F9D8E8;
  --blue: #DDEBFF;
  --mint: #D8F5F0;
  --yellow: #FFF2C7;

  --gradient-brand: linear-gradient(135deg, #7C5CFC 0%, #A78BFA 50%, #E9D5FF 100%);
  --gradient-soft: linear-gradient(135deg, #F3F0FF 0%, #FAF9FF 50%, #F9D8E8 100%);
  --gradient-cta: linear-gradient(135deg, #7C5CFC 0%, #8B6EFF 42%, #C4B5FD 100%);
  --gradient-text: linear-gradient(135deg, #7C5CFC 0%, #A78BFA 100%);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;

  --shadow-sm: 0 4px 16px rgba(91, 72, 160, 0.06);
  --shadow: 0 10px 40px rgba(91, 72, 160, 0.08);
  --shadow-lg: 0 16px 48px rgba(91, 72, 160, 0.14);
  --shadow-glow: 0 8px 24px rgba(124, 92, 252, 0.28);

  --border: 1px solid rgba(124, 92, 252, 0.12);
  --container: 1180px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: 0.25s ease;
  --space: 8px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 0.6em; letter-spacing: -0.03em; line-height: 1.15; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(2.375rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 200;
}
.skip-link:focus { left: 8px; color: #fff; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.muted { color: var(--text-muted); }
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 0;
}

.section { padding: 88px 0; }
.section-alt { background: var(--white); }
.section-soft { background: var(--lavender-soft); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .lead { margin-inline: auto; }
.section-header--left { text-align: left; }
.section-header--left .lead { margin-inline: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 13px 20px;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease), color var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 92, 252, 0.22);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: var(--border);
}
.btn-secondary:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-white {
  background: #fff;
  color: var(--primary-dark);
}
.btn-white:hover { transform: translateY(-2px); color: var(--primary-dark); box-shadow: var(--shadow); }
.btn-sm { padding: 10px 16px; border-radius: 12px; }
.btn-lg { padding: 16px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.link-quiet {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
}
.link-quiet:hover { color: var(--primary); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 249, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(124, 92, 252, 0.08);
  height: var(--header-h);
}
.site-header.is-scrolled {
  background: rgba(250, 249, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.logo:hover { color: var(--text); }
.logo-mark { display: flex; }
.nav-desktop { margin-left: auto; }
.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 11px;
  border-radius: 10px;
}
.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--primary-dark);
  background: var(--lavender-soft);
}
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: var(--border);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  background: #fff;
  border-top: var(--border);
  padding: 12px 20px 24px;
  box-shadow: var(--shadow);
}
.mobile-menu a {
  display: block;
  padding: 12px 8px;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid rgba(124, 92, 252, 0.08);
}
.mobile-menu__cta { display: grid; gap: 10px; margin-top: 16px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
}
.blob-a { width: 420px; height: 420px; background: #A78BFA; top: -120px; right: 8%; }
.blob-b { width: 340px; height: 340px; background: #F9D8E8; bottom: -80px; left: -40px; }
.blob-c { width: 260px; height: 260px; background: #DDEBFF; top: 40%; left: 38%; opacity: 0.22; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy .lead { font-size: 1.15rem; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; min-height: 420px; }
.hero-visual img { width: 100%; }
.float-a, .float-b {
  animation: float 6s ease-in-out infinite;
}
.float-b { animation-delay: -2.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Trust */
.trust-bar {
  padding: 8px 0 48px;
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-2xl);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px;
}

/* Cards / grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card,
.service-card,
.pricing-card,
.testimonial-card,
.benefit-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.service-card:hover,
.pricing-card:hover,
.benefit-card:hover,
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.icon-badge--lavender { background: var(--lavender); }
.icon-badge--blue { background: var(--blue); }
.icon-badge--pink { background: var(--pink); }
.icon-badge--mint { background: var(--mint); }
.icon-badge--yellow { background: var(--yellow); }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--lavender-soft);
  color: var(--primary-dark);
  padding: 5px 9px;
  border-radius: 999px;
}

.service-card { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-card__title { font-size: 1.35rem; margin: 0; }
.service-card__text { color: var(--text-muted); margin: 0; flex-grow: 0; }
.service-card .feature-list { margin: 6px 0 10px; flex: 1; }
.service-card--featured {
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F0FF 100%);
  border-color: rgba(124, 92, 252, 0.28);
  box-shadow: 0 14px 40px rgba(124, 92, 252, 0.12);
}
.service-card--lavender { border-top: 4px solid var(--primary); }
.service-card--blue { border-top: 4px solid #93C5FD; }
.service-card--pink { border-top: 4px solid #F0ABD0; }
.service-card--mint { border-top: 4px solid #7DD3C7; }

.feature-list { display: grid; gap: 8px; }
.feature-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.92rem;
}
.feature-list svg { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

/* Game spotlight */
.game-spotlight {
  background: linear-gradient(135deg, #F3F0FF 0%, #FAF9FF 45%, #D8F5F0 100%);
  overflow: hidden;
}
.game-spotlight__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Pricing */
.pricing-card {
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card--featured {
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F0FF 100%);
  border: 1px solid rgba(124, 92, 252, 0.35);
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(124, 92, 252, 0.16);
}
.pricing-card--featured:hover { transform: translateY(-12px); }
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card__name { letter-spacing: 0.06em; font-size: 0.95rem; color: var(--primary-dark); }
.pricing-card__price { margin: 4px 0 12px; }
.pricing-card__price strong { font-size: 2.4rem; letter-spacing: -0.04em; }
.pricing-card__from,
.pricing-card__period { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.pricing-card__note { font-size: 0.78rem; color: var(--text-muted); margin-top: -8px; }
.pricing-card .feature-list { margin-bottom: 20px; flex: 1; }

.benefit-card { padding: 24px; }
.benefit-card h3 { margin: 14px 0 8px; }
.benefit-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.infra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.infra-list { display: grid; gap: 14px; margin-top: 28px; }
.infra-list li { display: flex; gap: 12px; align-items: flex-start; }
.infra-list strong { display: block; }
.infra-list span { color: var(--text-muted); font-size: 0.92rem; }
.infra-visual {
  background: var(--white);
  border: var(--border);
  border-radius: 32px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.testimonial-card { padding: 24px; }
.testimonial-card__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.testimonial-card__head span { display: block; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: var(--primary-dark);
}
.avatar--lavender { background: var(--lavender); }
.avatar--blue { background: var(--blue); }
.avatar--mint { background: var(--mint); }
.stars { color: var(--primary); display: flex; gap: 2px; margin-bottom: 10px; }
.testimonial-card p { color: var(--text-muted); margin: 0; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.faq-item {
  background: var(--white);
  border: var(--border);
  border-radius: 18px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item__btn {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  font-weight: 650;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--text);
}
.faq-item__btn svg { transition: transform var(--ease); color: var(--primary); flex-shrink: 0; }
.faq-item.is-open .faq-item__btn svg { transform: rotate(180deg); }
.faq-item__panel { padding: 0 18px 16px; color: var(--text-muted); }
.faq-item__panel p { margin: 0; }

/* CTA band */
.cta-band {
  background: var(--gradient-cta);
  color: #fff;
  padding: 64px 0;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: 0.92; max-width: 520px; }
.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* Footer */
.site-footer {
  background: #17151F;
  color: #E8E4F4;
  padding: 64px 0 28px;
}
.site-footer .logo-text,
.site-footer .logo { color: #fff; }
.site-footer h2 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { color: #B8B3C6; }
.footer-contact { font-size: 0.92rem; line-height: 1.9; }
.footer-contact svg { vertical-align: -3px; margin-right: 4px; }
.site-footer a { color: #C9C3D8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: grid; gap: 8px; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  font-size: 0.88rem;
  color: #9C97AB;
}
.footer-bottom p { margin: 0; }

/* Page hero */
.page-hero {
  padding: 56px 0 24px;
  position: relative;
  overflow: hidden;
}
.page-hero .lead { max-width: 640px; }

.mail-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.mail-examples code {
  background: var(--pink);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
}

/* Forms */
.form-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 252, 0.18);
  background: #fff;
  color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 500;
}
.alert-success { background: var(--mint); color: var(--text); }
.alert-error { background: var(--pink); color: var(--text); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
}
.contact-info { display: grid; gap: 12px; }
.info-tile {
  background: var(--white);
  border: var(--border);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  gap: 12px;
}

/* Legal / prose */
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--text-muted); }
.prose h2 { margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1rem; }

/* Game configurator */
.configurator {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.game-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.game-option {
  background: var(--white);
  border: var(--border);
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.game-option:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.game-option.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.16);
  background: var(--lavender-soft);
}
.game-option strong { display: block; }
.game-option span { color: var(--text-muted); font-size: 0.78rem; }
.config-panel {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: var(--shadow);
}
.config-panel + .config-panel { margin-top: 16px; }
.field { margin-bottom: 18px; }
.field header { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}
.price-box {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: var(--shadow);
}
.price-box .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; color: var(--primary-dark); }
.price-box .hint { color: var(--text-muted); font-size: 0.85rem; }

.status-grid { display: grid; gap: 12px; }
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; display: inline-block; margin-right: 8px; }

.auth-wrap { max-width: 460px; margin: 48px auto 80px; }
.field-hint { font-size: 0.82rem; color: var(--text-muted); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.logout-form { display: inline; margin: 0; }
.logout-form button.link-quiet {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .float-a, .float-b, .hero-visual img { animation: none !important; opacity: 1; transform: none; }
  .service-card:hover, .pricing-card:hover, .benefit-card:hover { transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-desktop { display: none; }
  .hide-sm { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.is-open { display: block; }
  .hero-grid,
  .game-spotlight__grid,
  .infra-grid,
  .faq-layout,
  .contact-grid,
  .configurator,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card--featured { transform: none; }
  .header-actions .link-quiet { display: none; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .grid-4, .grid-3, .grid-2, .trust-bar__grid, .game-picker, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 24px; }
  .hero-visual { min-height: 280px; }
  .section { padding: 56px 0; }
  .cta-band__inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { white-space: normal; }
  h1 { font-size: clamp(2.35rem, 8vw, 2.85rem); }
}

@media (max-width: 420px) {
  .header-actions .btn { padding: 10px 12px; }
}
