/* ============================================================
   Oye Teknoloji — showcase site
   Palette: deep ink gallery walls, product art brings the color
   ============================================================ */

:root {
  --bg: #0a0b10;
  --bg-elev: #12141c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f3f7;
  --muted: #9ba0ae;
  --accent: #ff7a2f;
  --accent-bright: #ffb15c;
  --accent-soft: rgba(255, 122, 47, 0.14);
  --violet: #7c5cff;
  --radius: 20px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain — kills the flat digital look */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #14090a; }

/* thin dark scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- type ---------- */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-bright) 55%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* staggered line reveal on load */
h1 .line { display: block; overflow: hidden; padding-block: 0.06em; }
h1 .line-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: line-rise 1s var(--ease-out) forwards;
}
h1 .line:nth-child(2) .line-inner { animation-delay: 0.12s; }

@keyframes line-rise {
  to { transform: translateY(0); }
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-sub {
  color: var(--muted);
  max-width: 56ch;
  margin-top: 16px;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), background 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: linear-gradient(180deg, #ff8b47 0%, var(--accent) 55%, #f2661d 100%);
  border-color: rgba(255, 180, 120, 0.55);
  color: #1a0d05;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 32px rgba(255, 122, 47, 0.35);
}
.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 44px rgba(255, 122, 47, 0.5);
}

/* sheen sweep */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(255,255,255,0.2); }

.btn-small { padding: 10px 20px; font-size: 0.85rem; background: var(--surface); }
.btn-small:hover { background: var(--surface-hover); }

.btn-big { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(10, 11, 16, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 34px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 2px no-repeat;
  transition: color 0.25s ease, background-size 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--text); background-size: 100% 2px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 28px 0;
  text-align: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}
.glow-a {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,122,47,0.28), transparent 65%);
  top: -180px; left: 50%;
  transform: translateX(-80%);
}
.glow-b {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(124,92,255,0.22), transparent 65%);
  top: 120px; left: 50%;
  transform: translateX(4%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
}

.hero-copy {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 54ch;
  margin: 24px auto 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* sub + actions ease in after the headline */
.hero-sub, .hero-actions {
  opacity: 0;
  animation: soft-in 0.9s var(--ease-out) forwards;
}
.hero-sub { animation-delay: 0.35s; }
.hero-actions { animation-delay: 0.5s; }

@keyframes soft-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 3D orbit ---------- */

.orbit-stage {
  position: relative;
  height: 500px;
  max-width: 1100px;
  margin: 24px auto 0;
  perspective: 1200px;
  cursor: grab;
  touch-action: pan-y;
}
.orbit-stage.dragging { cursor: grabbing; }

/* light pool the icons float above */
.orbit-ground {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(72%, 760px);
  height: 130px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 122, 47, 0.13), rgba(124, 92, 255, 0.07) 55%, transparent 72%);
  filter: blur(6px);
}
.orbit-ground::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.orbit-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, opacity;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -6px 14px rgba(0, 0, 0, 0.22),
    0 18px 42px rgba(0, 0, 0, 0.55);
  /* floor reflection, Apple-keynote style (WebKit/Blink) */
  -webkit-box-reflect: below 12px linear-gradient(transparent 62%, rgba(255, 255, 255, 0.14));
}

/* specular gloss across the icon face */
.orbit-icon::after,
.app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 65% at 22% -8%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05) 48%, transparent 60%);
  pointer-events: none;
}

.orbit-icon .glyph-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.03em;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: radial-gradient(circle at 30% 25%, rgba(255,122,47,0.25), rgba(124,92,255,0.12) 60%, transparent),
              var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(255, 122, 47, 0.18);
}

.orbit-core-count {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.orbit-core-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.orbit-hint {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
}

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-elev);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker-scroll 48s linear infinite;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ticker-track .tick-sep { color: var(--accent); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 28px;
}

.section-head { max-width: 640px; margin-bottom: 64px; }

/* ---------- app cards ---------- */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.app-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.028) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* per-app colored glow, driven by --app-glow set in JS */
.app-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--app-glow, rgba(255,122,47,0.16)), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.app-card:hover::before { opacity: 1; }

/* gradient hairline ring on hover — light falling on the card edge */
.app-card > .card-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 38%, transparent 62%, var(--app-glow, rgba(255,122,47,0.3)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.app-card:hover > .card-ring { opacity: 1; }

.app-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 255, 255, 0.16);
}

.app-icon {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  transform: translateZ(30px);
  transition: box-shadow 0.35s ease;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -5px 12px rgba(0, 0, 0, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.45);
}
.app-card:hover .app-icon {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -5px 12px rgba(0, 0, 0, 0.22),
    0 18px 38px rgba(0, 0, 0, 0.55),
    0 0 44px var(--app-glow, rgba(255, 122, 47, 0.25));
}

.app-icon .glyph-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.app-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-chip {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
}

.app-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  transform: translateZ(20px);
}

.app-desc {
  color: var(--muted);
  font-size: 0.95rem;
  transform: translateZ(14px);
}

.app-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease, gap 0.25s var(--ease-out);
}
.app-card:hover .app-link { opacity: 1; gap: 13px; }
.app-link .arrow { color: var(--accent); }

/* ---------- studio ---------- */

.section-studio { border-top: 1px solid transparent; }

/* gradient hairline divider instead of a flat border */
.section-studio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 30%, rgba(255, 255, 255, 0.14) 70%, transparent);
}

.studio-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: start;
}

.studio-copy p { color: var(--muted); margin-top: 22px; max-width: 52ch; }

.studio-values {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-values li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
}
.studio-values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(145deg, var(--accent-bright), var(--accent));
}
.studio-values strong { color: var(--text); }

.studio-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}
.stat-num i { font-style: normal; font-size: 1.4rem; }

.stat-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- contact ---------- */

.section-contact { padding-bottom: 140px; }

.contact-card {
  position: relative;
  text-align: center;
  background:
    radial-gradient(600px circle at 50% -10%, rgba(255,122,47,0.16), transparent 70%),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 88px 32px;
  overflow: hidden;
}

/* top edge catch-light */
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 120, 0.5), transparent);
}

.contact-card .section-sub { margin: 16px auto 36px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.brand-footer { font-size: 1.2rem; }

.footer-links { display: flex; gap: 24px; font-weight: 600; }
.footer-links a:hover { color: var(--text); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .section { padding: 88px 20px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .apps-grid { grid-template-columns: 1fr; }
  .orbit-stage { height: 400px; }
  .orbit-icon { width: 84px; height: 84px; border-radius: 20px; font-size: 38px; }
  .orbit-icon .glyph-text { font-size: 28px; }
  .orbit-core { width: 132px; height: 132px; }
  .orbit-core-count { font-size: 2rem; }
  .contact-card { padding: 64px 22px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .app-card { transition: none; }
  .btn-primary::after { display: none; }
  h1 .line-inner { transform: none; animation: none; }
  .hero-sub, .hero-actions { opacity: 1; animation: none; }
}
