/* iReally — lightweight single-page stylesheet */
:root {
  color-scheme: light;
  --bg: #f7faff;
  --surface: rgba(255, 255, 255, .78);
  --surface-soft: rgba(232, 241, 255, .88);
  --text: #111827;
  --muted: #526174;
  --line: rgba(30, 64, 110, .14);
  --header: rgba(247, 250, 255, .84);
  --shadow: 0 18px 50px rgba(20, 20, 20, .07);
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08111f;
  --surface: rgba(16, 27, 43, .78);
  --surface-soft: rgba(22, 43, 69, .88);
  --text: #f4f8ff;
  --muted: #c2cfdf;
  --line: rgba(205, 224, 248, .18);
  --header: rgba(8, 17, 31, .84);
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(67, 139, 255, .13), transparent 30%),
    radial-gradient(circle at 88% 28%, rgba(37, 99, 235, .09), transparent 32%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg) 52%, rgba(219, 234, 254, .22) 100%);

  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar {
  width: min(1160px, calc(100% - 40px));
  min-height: 72px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 130px; height: 40px; object-fit: contain; display: block; }
.desktop-nav { display: flex; align-items: center; gap: 32px; }
.desktop-nav a, .mobile-menu a {
  color: var(--muted); font-size: .88rem; font-weight: 500;
  transition: color .2s ease;
}
.desktop-nav a:hover, .mobile-menu a:hover { color: var(--text); }
.theme-toggle {
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--line);
  border-radius: 50%; background: var(--surface); color: var(--text);
  cursor: pointer; display: grid; place-items: center; position: relative;
}
.theme-toggle span { font-size: .9rem; }
.theme-toggle .theme-moon { display: none; }
:root[data-theme="dark"] .theme-toggle span:first-child { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display: inline; }

.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 1.5px; margin: 5px 0; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.mobile-menu {
  width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 8px 0 18px;
  display: grid; gap: 2px;
}
.mobile-menu a, .mobile-theme { padding: 12px 4px; border: 0; background: transparent; text-align: left; color: var(--muted); cursor: pointer; }
.mobile-theme { font-size: .88rem; }
.mobile-menu[hidden] { display: none; }

.section { width: min(1160px, calc(100% - 40px)); margin: auto; }
.hero {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 120px 0 90px;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(520px, 72vw); height: auto; display: block; }
.tagline {
  margin: 24px 0 34px; color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: -.01em;
}
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: .88rem; font-weight: 600;
  box-shadow: var(--shadow); transition: transform .2s ease, background-color .2s ease;
}
.cta:hover { transform: translateY(-2px); background: var(--surface-soft); }

.channels { padding: 130px 0; }
.section-heading { margin-bottom: 44px; }
.eyebrow {
  margin: 0 0 10px; color: var(--muted); font-size: .72rem;
  font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.055em; }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.channel {
  --accent: #52677f;
  position: relative; min-height: 420px; padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s ease, background-color .25s ease;
}
.channel:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.channel::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: var(--accent); opacity: .75;
}
.channel-logo {
  width: 112px; height: 112px; object-fit: contain;
  transition: transform .25s var(--ease);
}
.channel:hover .channel-logo { transform: translateY(-3px); }
.channel-name { margin: 28px 0 0; font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.04em; }
.watch {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 46px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: var(--surface); transition: background-color .2s ease, transform .2s ease;
}
.watch:hover { background: var(--surface-soft); transform: translateY(-1px); }
.watch[aria-disabled="true"] { cursor: pointer; }

.contact { padding: 40px 0 150px; }
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px;
  padding: 54px 0; border-top: 1px solid var(--line);
}
.contact-details { display: grid; gap: 0; }
.detail {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 19px 0; border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.detail span { color: var(--muted); }
.detail strong, .coming-soon { font-weight: 500; text-align: right; }
.coming-soon { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }

.footer { border-top: 1px solid var(--line); width: min(1160px, calc(100% - 40px)); margin: auto; padding: 52px 0 28px; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.footer-brand img { width: 150px; height: 46px; }
.footer-links { display: grid; align-content: start; gap: 10px; font-size: .84rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.owner { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .75rem; }
.owner span { color: var(--muted); }
.owner strong { font-weight: 500; }
.footer-bottom {
  margin-top: 55px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px;
  color: var(--muted); font-size: .72rem;
}

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 30;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); font-size: .8rem;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.channel.reveal { transition-delay: var(--delay, 0ms); }

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .channel-grid { grid-template-columns: 1fr; }
  .channel { min-height: 360px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .owner { grid-column: 1 / -1; max-width: 430px; }
}
@media (max-width: 520px) {
  .navbar, .mobile-menu, .section, .footer { width: min(100% - 28px, 1160px); }
  .navbar { min-height: 64px; }
  .brand img { width: 108px; height: 34px; }
  .hero { padding-top: 105px; }
  .hero-logo { width: min(390px, 84vw); }
  .channels { padding: 95px 0; }
  .channel { min-height: 330px; padding: 25px; border-radius: 20px; }
  .contact { padding-bottom: 100px; }
  .detail { flex-direction: column; gap: 5px; }
  .detail strong, .coming-soon { text-align: left; overflow-wrap: anywhere; }
  .footer-main { grid-template-columns: 1fr; }
  .owner { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(59, 130, 246, .18), transparent 32%),
    radial-gradient(circle at 88% 28%, rgba(37, 99, 235, .12), transparent 34%),
    linear-gradient(135deg, #08111f 0%, #0b1628 55%, #0a1322 100%);
}
