/* ============================================================
   usure.pro — parent-brand landing
   Corporate light-blue theme, scoped under [data-theme="usure"]
   ============================================================ */

/*
  Palette is anchored to the Tailwind "sky" scale so the page chrome and the
  Three.js geometry (sky-500 / sky-600 / sky-800) share the same family.
   - bg uses sky-50/100 for surfaces, white for elevated cards
   - text uses sky-900 / slate-500 / slate-400 for the three text levels
   - accent is sky-500 with sky-600 hover
*/
[data-theme="usure"] {
  /* Surfaces */
  --color-bg-primary: #F0F9FF;     /* sky-50 */
  --color-bg-secondary: #FFFFFF;
  --color-bg-tertiary: #E0F2FE;    /* sky-100 */
  --color-bg-hover: #BAE6FD;       /* sky-200 */
  --color-bg-active: #7DD3FC;      /* sky-300 */

  /* Text */
  --color-text-primary: #0C4A6E;   /* sky-900 */
  --color-text-secondary: #475569; /* slate-600 */
  --color-text-tertiary: #94A3B8;  /* slate-400 */
  --color-text-inverse: #FFFFFF;

  /* Borders */
  --color-border-default: #BAE6FD; /* sky-200 */
  --color-border-subtle: #E0F2FE;  /* sky-100 */
  --color-border-strong: #7DD3FC;  /* sky-300 */

  /* Accent — sky-500, matched to the Three.js "gold" role */
  --color-accent: #0EA5E9;         /* sky-500 */
  --color-accent-hover: #0284C7;   /* sky-600 */
  --color-accent-muted: rgba(14, 165, 233, 0.12);
  --color-accent-text: #0369A1;    /* sky-700 */

  /* Secondary — deeper sky, matched to the Three.js "blue" role */
  --color-ink: #075985;            /* sky-800 */
  --color-ink-hover: #0C4A6E;      /* sky-900 */
  --color-ink-muted: rgba(7, 89, 133, 0.10);

  /* Shadows — light tints, faintly sky-colored */
  --shadow-sm: 0 1px 2px rgba(12, 74, 110, 0.05);
  --shadow-md: 0 4px 14px rgba(12, 74, 110, 0.08);
  --shadow-lg: 0 10px 28px rgba(12, 74, 110, 0.10);
  --shadow-glow: 0 0 28px rgba(14, 165, 233, 0.18);
}

/* ── Body wrapper ─────────────────────────────────────────── */

.theme-usure {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  min-height: 100vh;
}

.usure {
  overflow-x: hidden;
}

/* ── Navigation ───────────────────────────────────────────── */

.usure__nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: rgba(240, 249, 255, 0.72); /* sky-50 @ 72% */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.usure__nav-logo {
  display: block;
  height: 32px;
  width: auto;
  /* Browser renders the alt text if the image fails to load — keep it
     readable in that fallback state. */
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.usure__nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ── Hero ─────────────────────────────────────────────────── */

.usure__hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) var(--space-6) var(--space-16);
  overflow: hidden;
}

.usure__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.usure__hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
  /* Soft halo of light — no panel, no border, no blur. The radial gradient
     fades from a gentle wash at the centre to fully transparent at the
     edges, so the geometry breathes through while the text stays legible. */
  padding: clamp(var(--space-8), 5vw, var(--space-12)) clamp(var(--space-6), 5vw, var(--space-10));
  background: radial-gradient(
    ellipse 70% 60% at center,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.22) 45%,
    rgba(255, 255, 255, 0) 85%
  );
  transition: opacity 800ms ease, transform 800ms ease;
}

.usure__hero-content--hidden {
  opacity: 0;
  transform: translateY(12px);
}

.usure__hero-content--visible {
  opacity: 1;
  transform: translateY(0);
}

.usure__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.usure__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-8);
}

.usure__hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

/* ── Generic section + container ─────────────────────────── */

.usure__section {
  position: relative;
  padding: var(--space-20) var(--space-6);
}

.usure__container {
  max-width: var(--container-xl);
  margin: 0 auto;
}

.usure__section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.usure__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
  max-width: 800px;
}

.usure__section-subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.usure__section-body {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 720px;
}

/* ── Services portfolio ───────────────────────────────────── */

.usure__service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

@media (min-width: 640px) {
  .usure__service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .usure__service-grid { grid-template-columns: repeat(4, 1fr); }
}

.usure__service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.usure__service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.usure__service-card--live {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.usure__service-card--soon {
  opacity: 0.72;
  border-style: dashed;
}

.usure__service-category {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
}

.usure__service-card--soon .usure__service-category {
  color: var(--color-text-tertiary);
}

.usure__service-name {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

.usure__service-domain {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.usure__service-desc {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  flex: 1;
}

/* ── Steps (How we work) ─────────────────────────────────── */

.usure__steps {
  list-style: none;
  padding: 0;
  margin: var(--space-8) 0 0;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .usure__steps { grid-template-columns: repeat(3, 1fr); }
}

.usure__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.usure__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-accent-muted);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--text-lg);
}

.usure__step-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.usure__step-title {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: 0;
}

.usure__step-desc {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ── Final CTA ────────────────────────────────────────────── */

.usure__final-cta {
  text-align: center;
  background: var(--color-bg-tertiary);
}

.usure__final-cta .usure__section-title,
.usure__final-cta .usure__section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ───────────────────────────────────────────────── */

.usure__footer {
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-10) var(--space-6);
  background: var(--color-bg-secondary);
}

.usure__footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.usure__footer-logo {
  display: block;
  height: 40px;
  width: auto;
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
}

.usure__footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0;
}

.usure__footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin: 0;
}

/* ── Lang switch (mirrors landing) ───────────────────────── */

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-full);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-subtle);
}

.lang-switch__btn {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-switch__btn:hover {
  color: var(--color-text-primary);
}

.lang-switch__btn--active {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .usure__hero-content { transition: none; }
  .usure__service-card { transition: none; }
}
