@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800;900&display=swap");

:root {
  --orrin-blue: #484cff;
  --orrin-blue-deep: #3035df;
  --orrin-cyan: #25d7d0;
  --orrin-sky: #dff0ff;
  --orrin-sky-soft: #f3f8ff;
  --orrin-ink: #080b19;
  --orrin-muted: #667085;
  --orrin-line: rgba(67, 79, 152, 0.12);
  --orrin-card: rgba(255, 255, 255, 0.9);
  --orrin-shadow: 0 24px 70px rgba(47, 67, 154, 0.14);
  --primary: var(--orrin-blue);
  --primary-dark: var(--orrin-blue-deep);
  --bg: var(--orrin-sky-soft);
  --surface: #fff;
  --surface-soft: #eaf3ff;
  --text: var(--orrin-ink);
  --muted: var(--orrin-muted);
  --border: var(--orrin-line);
  --shadow: var(--orrin-shadow);
  --radius: 28px;
}

html { background: var(--orrin-sky-soft); }

body {
  color: var(--orrin-ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(37, 215, 208, 0.18), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(72, 76, 255, 0.16), transparent 27rem),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 45%, #f8fbff 100%);
  font-family: "Urbanist", "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
}

h1, h2, h3 {
  color: var(--orrin-ink);
  font-family: "Urbanist", "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: -0.045em;
}

p, li { color: #4e5870; }

a { color: var(--orrin-blue-deep); }

.site-header {
  background: rgba(248, 251, 255, 0.78);
  border-bottom: 1px solid rgba(72, 76, 255, 0.08);
  box-shadow: 0 8px 30px rgba(50, 65, 135, 0.04);
}

.nav { min-height: 78px; }

.brand { font-size: 1.28rem; font-weight: 850; }

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: transparent;
  background: url("assets/orrin-icon.png") center / cover no-repeat;
  box-shadow: 0 12px 30px rgba(72, 76, 255, 0.24);
}

.nav-links a {
  color: #4f5870;
  font-weight: 750;
  padding: 9px 3px;
}

.nav-links a:hover { color: var(--orrin-blue); }

.lang-select {
  border-color: rgba(72, 76, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(52, 65, 130, 0.06);
  font-weight: 750;
}

.hero {
  min-height: 715px;
  padding: 90px 0 96px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(72, 76, 255, 0.12) 1.1px, transparent 1.1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  opacity: .35;
}

.hero-grid { position: relative; gap: 72px; }

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 6vw, 5.65rem);
  line-height: .99;
}

.hero .lead {
  max-width: 670px;
  color: #536078;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.72;
}

.eyebrow {
  color: var(--orrin-blue-deep);
  background: rgba(72, 76, 255, 0.1);
  border: 1px solid rgba(72, 76, 255, 0.12);
  font-weight: 850;
  letter-spacing: .02em;
}

.button {
  min-height: 52px;
  border-radius: 17px;
  padding: 14px 21px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #5960ff 0%, #3f43f4 62%, #337cf5 100%);
  box-shadow: 0 15px 32px rgba(72, 76, 255, 0.28);
}

.button-secondary {
  color: var(--orrin-ink);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(72, 76, 255, 0.12);
  box-shadow: 0 11px 30px rgba(44, 59, 129, 0.08);
}

.app-preview {
  min-height: 560px;
  position: relative;
  display: grid;
  place-items: center;
}

.app-preview::before {
  content: "";
  width: 440px;
  height: 440px;
  position: absolute;
  border-radius: 46% 54% 58% 42% / 44% 43% 57% 56%;
  background: linear-gradient(145deg, rgba(85, 100, 255, .2), rgba(44, 220, 211, .17));
  filter: blur(2px);
  transform: rotate(-9deg);
}

.hero-screen {
  position: absolute;
  display: block;
  width: 294px;
  border: 9px solid #111522;
  border-radius: 37px;
  box-shadow: 0 34px 70px rgba(24, 35, 88, .26);
}

.hero-screen-main { z-index: 3; transform: translate(28px, 3px) rotate(1.8deg); }
.hero-screen-side { z-index: 2; width: 245px; transform: translate(-160px, 34px) rotate(-10deg); opacity: .96; }

.hero-orb {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  background: linear-gradient(145deg, #20dfd3, #4560ff 58%, #7f39ff);
  box-shadow: inset -9px -10px 22px rgba(35, 30, 170, .28), 0 18px 38px rgba(54, 77, 240, .24);
}

.hero-orb-one { width: 76px; height: 76px; top: 62px; right: -6px; }
.hero-orb-two { width: 42px; height: 42px; left: -6px; bottom: 78px; }

.floating-stat {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #242b46;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(72,76,255,.1);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(31, 45, 105, .17);
  backdrop-filter: blur(12px);
  font-size: .9rem;
}

.floating-stat span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orrin-blue), var(--orrin-cyan));
}

.floating-stat-top { right: -20px; top: 185px; }
.floating-stat-bottom { left: -55px; bottom: 122px; }

.section { padding: 92px 0; }

.section-heading { max-width: 760px; }

.section-heading h2,
.callout h2 { font-size: clamp(2.35rem, 4vw, 4.1rem); }

.section-heading p { font-size: 1.1rem; }

.cards { gap: 20px; }

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(72, 76, 255, .09);
  border-radius: 26px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 52px rgba(48, 62, 132, .09);
  backdrop-filter: blur(14px);
}

.card::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  right: -45px;
  bottom: -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 215, 208, .17), transparent 70%);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(72,76,255,.18);
  box-shadow: 0 25px 64px rgba(48,62,132,.14);
}

.icon {
  color: #fff;
  background: linear-gradient(135deg, var(--orrin-blue), #4aa5f4 62%, var(--orrin-cyan));
  box-shadow: 0 12px 28px rgba(72, 76, 255, .24);
}

.app-showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 30%, rgba(37,215,208,.17), transparent 22rem),
    linear-gradient(135deg, #eaf5ff, #dcecff 58%, #edf7ff);
  border-block: 1px solid rgba(72,76,255,.07);
}

.app-showcase .section-heading { text-align: center; margin-inline: auto; }

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 52px;
}

.screen-card {
  margin: 0;
  padding: 11px 11px 16px;
  overflow: hidden;
  text-align: center;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(72,76,255,.12);
  border-radius: 30px;
  box-shadow: 0 24px 55px rgba(42,58,126,.13);
}

.screen-card-up { margin-top: -24px; }
.screen-card img { width: 100%; display: block; border-radius: 21px; }
.screen-card figcaption { padding: 14px 8px 2px; color: #3b4560; font-weight: 850; }

.callout {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #3e43ef 0%, #4e5cff 48%, #28cbd4 125%);
  border: 0;
  box-shadow: 0 28px 70px rgba(58, 67, 221, .25);
}

.callout::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -100px;
  top: -130px;
  border: 60px solid rgba(255,255,255,.11);
  border-radius: 50%;
}

.callout h2, .callout p { position: relative; z-index: 1; color: #fff; }
.callout .button-secondary { position: relative; z-index: 1; }

.page-hero {
  padding: 92px 0 62px;
  background:
    radial-gradient(circle at 82% 30%, rgba(37, 215, 208, .2), transparent 23rem),
    linear-gradient(145deg, rgba(226,240,255,.78), rgba(243,248,255,.95));
  border-bottom: 1px solid rgba(72,76,255,.07);
}

.page-hero h1,
main > header h1 {
  font-size: clamp(2.7rem, 5vw, 4.7rem);
}

.support-grid { gap: 28px; }
.contact-card { background: linear-gradient(150deg, #fff, #f0f6ff); }
.contact-item { border-color: rgba(72,76,255,.1); background: rgba(234,243,255,.7); }
details { border-color: rgba(72,76,255,.1); }
details[open] { background: rgba(234,243,255,.45); }
summary { color: #202745; font-weight: 800; }
.notice { background: #e7efff; border-color: rgba(72,76,255,.17); color: #394467; }

/* Full legal pages imported from the original Orrin policy pages. */
.legal-page > main {
  max-width: 980px;
  padding: 64px 24px 92px;
}

.legal-page > main > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.legal-page > main > nav a {
  margin: 0;
  padding: 9px 14px;
  color: #394467;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(72,76,255,.1);
  border-radius: 999px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(47,60,126,.07);
}

.legal-page > main > header {
  padding: 42px;
  margin-bottom: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(37,215,208,.22), transparent 16rem),
    linear-gradient(145deg, #e8f4ff, #f8fbff);
  border: 1px solid rgba(72,76,255,.09);
  border-radius: 32px;
  box-shadow: 0 20px 55px rgba(48,62,132,.09);
}

.legal-page > main > header p { max-width: 800px; }

.legal-page > main > section {
  padding: 3px 32px 8px;
  border-left: 3px solid rgba(72,76,255,.1);
}

.legal-page > main > section h2 {
  color: #1b2242;
  font-size: 1.55rem;
}

.contact-card {
  border-radius: 24px;
}

.site-footer {
  background: #12172b;
  border-top: 0;
}

.site-footer,
.site-footer a,
.site-footer .small { color: rgba(255,255,255,.76); }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .app-preview { min-height: 590px; max-width: 600px; width: 100%; margin: 0 auto; }
  .screen-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-card-up { margin-top: 0; }
}

@media (max-width: 680px) {
  .nav { min-height: 70px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
  .nav-links { gap: 10px; }
  .nav-links a:first-child { display: none; }
  .hero { padding: 66px 0 76px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.25rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .app-preview { min-height: 500px; transform: scale(.88); margin: -26px auto; }
  .hero-screen-main { width: 275px; transform: translate(28px, 0) rotate(1.8deg); }
  .hero-screen-side { width: 220px; transform: translate(-115px, 40px) rotate(-9deg); }
  .floating-stat-top { right: -12px; }
  .floating-stat-bottom { left: -12px; }
  .section { padding: 72px 0; }
  .screen-gallery { grid-template-columns: 1fr; max-width: 330px; margin-inline: auto; }
  .screen-card:nth-child(n+3) { display: none; }
  .callout { padding: 34px 25px; }
  .legal-page > main { padding: 36px 16px 68px; }
  .legal-page > main > header { padding: 28px 22px; border-radius: 25px; }
  .legal-page > main > section { padding-inline: 19px 4px; }
  .hero-screen-main, .hero-screen-side, .hero-orb-one { animation: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-screen-main { animation: orrin-float 6s ease-in-out infinite; }
  .hero-screen-side { animation: orrin-float-side 7s ease-in-out infinite; }
  .hero-orb-one { animation: orrin-orb 5s ease-in-out infinite; }
}

@keyframes orrin-float {
  0%,100% { transform: translate(28px, 3px) rotate(1.8deg); }
  50% { transform: translate(28px, -9px) rotate(.8deg); }
}

@keyframes orrin-float-side {
  0%,100% { transform: translate(-160px, 34px) rotate(-10deg); }
  50% { transform: translate(-160px, 45px) rotate(-8.8deg); }
}

@keyframes orrin-orb {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(10px) rotate(18deg); }
}
