@plugin "daisyui/theme" {
  name: "maintheme";
  default: true;
  prefersdark: false;
  color-scheme: "light";
  --color-base-100: oklch(98.5% 0.003 250);
  --color-base-200: oklch(95.8% 0.004 250);
  --color-base-300: oklch(91.8% 0.005 250);
  --color-base-content: oklch(20% 0.006 250);
  --color-primary: oklch(61% 0.2 255);
  --color-primary-content: oklch(99% 0.002 255);
  --color-secondary: oklch(66% 0.06 185);
  --color-secondary-content: oklch(98% 0.002 250);
  --color-accent: oklch(72% 0.14 32);
  --color-accent-content: oklch(99% 0.002 32);
  --color-neutral: oklch(20% 0.006 250);
  --color-neutral-content: oklch(98% 0.002 250);
  --color-info: oklch(69% 0.15 240);
  --color-success: oklch(69% 0.16 154);
  --color-warning: oklch(80% 0.16 82);
  --color-error: oklch(64% 0.21 25);
  --radius-selector: 1.25rem;
  --radius-field: 1rem;
  --radius-box: 1.5rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1px;
  --depth: 0;
  --noise: 0;
}

@font-face {
  font-family: "San Orien";
  src: url("https://cdn.jsdelivr.net/gh/intensed-dev/SO-Pro@main/fonts/SO_Pro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "San Orien";
  src: url("https://cdn.jsdelivr.net/gh/intensed-dev/SO-Pro@main/fonts/SO_Pro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "San Orien";
  src: url("https://cdn.jsdelivr.net/gh/intensed-dev/SO-Pro@main/fonts/SO_Pro-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  scroll-behavior: smooth;
  --ink: #111114;
  --muted: #66666f;
  --surface: #f5f5f7;
  --blue: #007aff;
  --mint: #39d0b4;
  --coral: #ff6b4a;
  --violet: #8b5cf6;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: "San Orien", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /*letter-spacing: 4px;*/
}

body::selection {
  background: var(--blue);
  color: white;
}

.header-scrolled {
  background: rgb(255 255 255 / 0.78);
  box-shadow: 0 10px 30px rgb(17 17 20 / 0.06);
}

.section-pad {
  padding-block: clamp(5rem, 12vw, 10rem);
}

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

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 900;
  /*letter-spacing: 0.16em;*/
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual {
  background:
    radial-gradient(circle at 78% 20%, rgb(0 122 255 / 0.22), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 70%, #f5f5f7 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(17 17 20 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(17 17 20 / 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, black 15%, black 70%, transparent 100%);
}

.hero-sheen {
  position: absolute;
  inset: 18% -15% auto auto;
  width: min(66vw, 780px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    conic-gradient(from 210deg, rgb(0 122 255 / 0.16), rgb(57 208 180 / 0.18), rgb(255 107 74 / 0.16), rgb(0 122 255 / 0.16));
  filter: blur(24px);
  opacity: 0.78;
}

.stage-wrap {
  align-self: center;
  perspective: 1400px;
}

.device-stage {
  position: relative;
  width: min(100%, 650px);
  min-height: 460px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.65);
  border-radius: 34px;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.86), rgb(225 228 236 / 0.74));
  box-shadow: 0 50px 110px rgb(40 48 67 / 0.22);
  transform: rotateX(8deg) rotateY(-13deg) rotateZ(3deg);
  transform-style: preserve-3d;
  animation: float-stage 7s ease-in-out infinite;
}

.device-toolbar {
  display: flex;
  gap: 8px;
  padding: 22px;
}

.device-toolbar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d8dae1;
}

.device-toolbar span:first-child {
  background: var(--coral);
}

.device-toolbar span:nth-child(2) {
  background: #ffd166;
}

.device-toolbar span:nth-child(3) {
  background: var(--mint);
}

.device-screen {
  display: grid;
  gap: 20px;
  padding: 10px 28px 32px;
}

.screen-line {
  height: 18px;
  width: 56%;
  border-radius: 999px;
  background: rgb(17 17 20 / 0.12);
}

.screen-line.wide {
  width: 78%;
  height: 26px;
  background: rgb(17 17 20 / 0.84);
}

.screen-dashboard {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  min-height: 250px;
}

.dashboard-panel {
  min-height: 120px;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.68);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.72);
}

.dashboard-panel.active {
  grid-row: span 2;
  background:
    linear-gradient(135deg, rgb(0 122 255 / 0.94), rgb(57 208 180 / 0.76)),
    #007aff;
}

.screen-wave {
  height: 70px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent, rgb(255 255 255 / 0.55), transparent),
    repeating-linear-gradient(90deg, rgb(17 17 20 / 0.11) 0 12px, transparent 12px 26px);
  background-size: 160px 100%, auto;
  animation: wave 3.8s linear infinite;
}

.metric-card {
  min-height: 116px;
  border: 1px solid rgb(255 255 255 / 0.62);
  border-radius: 26px;
  background: rgb(255 255 255 / 0.7);
  padding: 1.3rem;
  box-shadow: 0 22px 60px rgb(17 17 20 / 0.08);
  backdrop-filter: blur(20px);
}

.metric-card strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 0.95;
}

.metric-card span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-weight: 700;
}

.project-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  gap: 1.15rem;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(1.5rem, 4vw, 2.2rem);
  color: white;
  transition: transform 450ms ease, box-shadow 450ms ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgb(0 0 0 / 0.28);
}

.project-card h3 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  line-height: 0.95;
}

.project-card p:not(:first-child) {
  max-width: 26rem;
  color: rgb(255 255 255 / 0.72);
  line-height: 1.65;
}

.project-card-light {
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff, #dfe4ef);
}

.project-card-light p:not(:first-child) {
  color: rgb(17 17 20 / 0.64);
}

.project-card-dark {
  background: linear-gradient(145deg, #1d1d20, #050506);
}

.project-card-blue {
  background: linear-gradient(145deg, #007aff, #24c6a7);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  min-height: 150px;
  align-items: start;
  border: 1px solid rgb(17 17 20 / 0.08);
  border-radius: 26px;
  background: rgb(255 255 255 / 0.72);
  padding: clamp(1.2rem, 3vw, 1.7rem);
  box-shadow: 0 20px 60px rgb(17 17 20 / 0.06);
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: var(--ink);
  color: white;
}

.service-row h3,
.timeline-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
}

.service-row p,
.timeline-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.65;
}

.stack-chip {
  border: 1px solid rgb(17 17 20 / 0.09);
  border-radius: 999px;
  background: white;
  padding: 0.85rem 1.15rem;
  font-weight: 800;
  box-shadow: 0 14px 38px rgb(17 17 20 / 0.05);
}

.timeline-card {
  min-height: 220px;
  border: 1px solid rgb(17 17 20 / 0.08);
  border-radius: 30px;
  background: white;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.timeline-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 2.5rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
}

.reveal {
  transform: translateY(38px) scale(0.985);
  opacity: 0;
  transition:
    opacity 850ms ease var(--delay, 0ms),
    transform 850ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}

.reveal.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@keyframes float-stage {
  0%,
  100% {
    transform: rotateX(8deg) rotateY(-13deg) rotateZ(3deg) translateY(0);
  }
  50% {
    transform: rotateX(6deg) rotateY(-9deg) rotateZ(2deg) translateY(-14px);
  }
}

@keyframes wave {
  to {
    background-position: 160px 0, 0 0;
  }
}

@media (max-width: 760px) {
  .device-stage {
    min-height: 360px;
    border-radius: 26px;
    transform: rotateX(0) rotateY(0) rotateZ(0);
  }

  .screen-dashboard {
    min-height: 190px;
  }

  .project-card {
    min-height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}
