:root {
  --button-outline: rgba(0,0,0, .10);
  --badge-outline: rgba(0,0,0, .05);

  /* Automatic computation of border around primary / danger buttons */
  --opaque-button-border-intensity: -8; /* In terms of percentages */

  /* Backgrounds applied on top of other backgrounds when hovered/active */
  --elevate-1: rgba(0,0,0, .03);
  --elevate-2: rgba(0,0,0, .08);

  --background: 0 0% 98%;

  --foreground: 220 13% 18%;

  --border: 220 9% 88%;

  --card: 0 0% 100%;

  --card-foreground: 220 13% 18%;

  --card-border: 220 9% 92%;

  --popover: 0 0% 100%;

  --popover-foreground: 220 13% 18%;

  --popover-border: 220 9% 90%;

  --primary: 217 91% 35%;

  --primary-foreground: 0 0% 98%;

  --secondary: 142 76% 36%;

  --secondary-foreground: 0 0% 98%;

  --muted: 220 6% 95%;

  --muted-foreground: 220 9% 46%;

  --accent: 25 95% 53%;

  --accent-foreground: 0 0% 98%;

  --destructive: 0 84% 45%;

  --destructive-foreground: 0 0% 98%;

  --input: 220 13% 75%;
  --ring: 217 91% 35%;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Space Grotesk", Georgia, serif;
  --font-mono: "JetBrains Mono", Menlo, monospace;
  --radius: .5rem; /* 8px */
}

.dark {
  --button-outline: rgba(255,255,255, .10);
  --badge-outline: rgba(255,255,255, .05);

  --opaque-button-border-intensity: 9;  /* In terms of percentages */

  /* Backgrounds applied on top of other backgrounds when hovered/active */
  --elevate-1: rgba(255,255,255, .04);
  --elevate-2: rgba(255,255,255, .09);

  --background: 220 13% 12%;

  --foreground: 0 0% 95%;

  --border: 220 13% 24%;

  --card: 220 13% 16%;

  --card-foreground: 0 0% 95%;

  --card-border: 220 13% 20%;

  --popover: 220 13% 16%;

  --popover-foreground: 0 0% 95%;

  --popover-border: 220 13% 20%;

  --primary: 217 91% 60%;

  --primary-foreground: 220 13% 12%;

  --secondary: 142 76% 50%;

  --secondary-foreground: 220 13% 12%;

  --muted: 220 9% 18%;

  --muted-foreground: 220 9% 65%;

  --accent: 25 95% 60%;

  --accent-foreground: 220 13% 12%;

  --destructive: 0 84% 55%;

  --destructive-foreground: 0 0% 98%;

  --input: 220 13% 35%;
  --ring: 217 91% 60%;
}

* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-sans);
}

.bg-grid-pattern {
    background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.dark .bg-grid-pattern {
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.hover-elevate {
    position: relative;
    z-index: 0;
}

.hover-elevate::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0px;
    border-radius: inherit;
    z-index: 999;
    transition: background-color 0.3s ease;
}

.hover-elevate:hover::after {
    background-color: var(--elevate-1);
}

.hover-elevate-2::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0px;
    border-radius: inherit;
    z-index: 999;
    transition: background-color 0.3s ease;
}

.hover-elevate-2:hover::after {
    background-color: var(--elevate-2);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.open {
    max-height: 400px;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-bar {
    transition: width 0.3s ease;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: hsl(217 91% 45%);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--muted-foreground));
}

.timeline-line {
    position: relative;
}

.timeline-line::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: hsl(var(--border));
}

@media (min-width: 768px) {
    .timeline-line::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-dot {
    position: absolute;
    left: 0.75rem;
    top: 1.5rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: hsl(var(--primary));
    border: 4px solid hsl(var(--background));
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-container img {
    height: 60px;
    width: auto;
}

/* 18 of the 21 partner logos ship with a baked-in solid background, so each one
   sits on its own light tile: the opaque logos blend into it and the three
   transparent ones get a consistent backdrop, in both colour themes. */
.partner-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.partner-tile {
    display: grid;
    place-items: center;
    min-height: 6.25rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid hsl(var(--border));
    border-radius: 0.65rem;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.partner-tile:hover {
    border-color: hsl(var(--primary) / 0.35);
    box-shadow: 0 6px 18px -8px hsl(var(--primary) / 0.35);
    transform: translateY(-2px);
}

.partner-tile img {
    max-height: 3.2rem;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) contrast(1.05);
    opacity: 0.72;
    transition: filter .25s ease, opacity .25s ease;
}

.partner-tile:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .partner-tile:hover { transform: none; }
}

.imgd {
    padding-left: 20px;
    padding-right: 20px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}

[data-reveal]:nth-child(2) { transition-delay: .08s; }
[data-reveal]:nth-child(3) { transition-delay: .16s; }
[data-reveal]:nth-child(4) { transition-delay: .24s; }

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}
