/* Deep Ocean theme — aligned with xOceanic PLAN.md + Swift gradient stops */

:root {
  --ocean-deep: #0a1628;
  --ocean-mid: #0d2844;
  --surface: rgba(13, 40, 68, 0.55);
  --surface-border: rgba(120, 200, 220, 0.18);
  --cyan-accent: #2ec4ce;
  --cyan-deep: rgb(18, 138, 161);
  --cyan-muted: rgba(46, 196, 206, 0.35);
  --navy-stop: rgb(10, 41, 79);
  --sea-green: #5fb8a8;
  --sea-green-soft: rgba(95, 184, 168, 0.25);
  --text-primary: #f2f7fb;
  --text-muted: #9db4c9;
  --radius-lg: 1.125rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 18px 48px rgba(2, 12, 24, 0.45);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--ocean-deep);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ocean-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(18, 138, 161, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 40%, rgba(10, 70, 90, 0.4), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(5, 36, 87, 0.55), transparent 45%),
    linear-gradient(165deg, rgb(18, 138, 161) 0%, rgb(10, 41, 79) 42%, #050f1c 100%);
}

.wrap {
  width: min(68rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.brand-mark {
  width: clamp(4rem, 12vw, 5rem);
  height: clamp(4rem, 12vw, 5rem);
  flex-shrink: 0;
  border-radius: 1.125rem;
  box-shadow: 0 12px 40px rgba(2, 12, 24, 0.55), 0 0 0 1px var(--surface-border);
}

.brand-copy {
  flex: 1;
  min-width: min(100%, 16rem);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea-green);
}

.site-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tagline {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
}

.section {
  padding: 2.5rem 0 3rem;
}

.section--contact {
  padding-bottom: 4rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

.store-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports not (backdrop-filter: blur(12px)) {
  .store-card {
    background: rgba(13, 40, 68, 0.92);
  }
}

.store-card--placeholder {
  cursor: default;
}

.store-card-title {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.store-card-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.store-card-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.store-card-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  box-shadow: 0 4px 14px rgba(2, 12, 24, 0.35);
}

.store-card-icon--mark {
  object-fit: cover;
  object-position: center;
}

.store-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.badge {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ocean-deep);
  background: linear-gradient(135deg, var(--cyan-accent), var(--sea-green));
  border-radius: 999px;
}

.project-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.project-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

@supports not (backdrop-filter: blur(14px)) {
  .project-card {
    background: rgba(13, 40, 68, 0.94);
  }
}

.project-card-inner {
  padding: 1.5rem 1.5rem 1.65rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-icon {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  border: 1px solid var(--surface-border);
  background: rgba(6, 20, 40, 0.5);
  color: var(--cyan-accent);
}

.project-icon--xoceanic {
  padding: 0.25rem;
  border-color: var(--cyan-muted);
  background: radial-gradient(circle at 30% 25%, rgba(46, 196, 206, 0.2), transparent 55%);
}

.project-icon--xoceanic .xoceanic-logo {
  width: 3.25rem;
  height: 3.25rem;
  display: block;
  border-radius: 0.65rem;
}

.project-icon--thin-ice {
  padding: 0;
  overflow: hidden;
  border-color: rgba(120, 180, 220, 0.28);
  background: #05080c;
}

.project-icon--thin-ice .thin-ice-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
  border-radius: inherit;
}

.project-icon--drive {
  color: var(--cyan-accent);
}

.project-icon--alarm {
  color: #7ecbff;
}

.project-icon--chat {
  color: var(--cyan-accent);
}

.project-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.project-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  flex: 1;
}

.contact-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.link {
  color: var(--cyan-accent);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.link:hover {
  color: #5ee8f0;
}

.link:focus-visible {
  outline: 2px solid var(--cyan-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--surface-border);
}

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