/* =====================================================
   TEAM TITAM — T TITAM | Static Coin Website
   ===================================================== */

:root {
  --navy-900: #070b18;
  --navy-800: #0b1020;
  --navy-700: #111834;
  --navy-600: #1a2348;
  --red: #e3223a;
  --red-light: #ff6b7a;
  --blue-accent: #8fa1ff;
  --text: #e7ebff;
  --muted: #9aa5cc;
  --radius: 18px;
  --container: 1160px;
  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--navy-800);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--red), var(--navy-600));
  border-radius: 10px;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.gradient-text {
  background: linear-gradient(90deg, var(--red), var(--red-light), var(--blue-accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 4s linear infinite;
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--navy-900);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader__logo {
  width: 110px;
  animation: pulse-glow 1.2s ease-in-out infinite;
}
.preloader__text {
  letter-spacing: 0.5em;
  font-weight: 700;
  color: var(--red);
  animation: fade-blink 1.2s ease-in-out infinite;
}

/* ===== Cursor glow ===== */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 340px; height: 340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(227, 34, 58, 0.16), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
@media (hover: hover) { .cursor-glow { opacity: 1; } }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.navbar.scrolled {
  background: rgba(7, 11, 24, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo {
  width: 44px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(227, 34, 58, 0.55));
  animation: float 4s ease-in-out infinite;
}
.nav__name {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  font-weight: 300;
}
.nav__name b { color: var(--red); font-weight: 800; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 9px 16px;
  font-size: 0.94rem;
  border-radius: 999px;
  color: var(--muted);
  position: relative;
  transition: color 0.25s, background 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  background: var(--red);
  border-radius: 4px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link:hover::after, .nav__link.active::after { width: 40%; }
.nav__link--cta {
  background: linear-gradient(135deg, var(--red), #a5132a);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(227, 34, 58, 0.35);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { transform: translateY(-2px); filter: brightness(1.1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(227, 34, 58, 0.14), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(59, 74, 122, 0.35), transparent 55%),
    var(--navy-800);
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; }

.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  animation: orb-move 14s ease-in-out infinite alternate;
}
.hero__bg-orb--1 {
  width: 380px; height: 380px;
  background: var(--red);
  top: -80px; left: -60px;
}
.hero__bg-orb--2 {
  width: 460px; height: 460px;
  background: #2b3c78;
  bottom: -140px; right: -100px;
  animation-delay: -6s;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 50px;
  padding: 60px 0 90px;
}

.hero__coin { position: relative; display: grid; place-items: center; }
.hero__coin-glow {
  position: absolute;
  width: 108%; height: 108%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 34, 58, 0.55), transparent 62%);
  animation: pulse-glow 2.6s ease-in-out infinite;
}
.hero__coin-img {
  position: relative;
  width: min(380px, 78vw);
  animation: coin-float 5s ease-in-out infinite;
  transition: transform 0.15s ease-out;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.6));
}

.hero__badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-light);
  background: rgba(227, 34, 58, 0.12);
  border: 1px solid rgba(227, 34, 58, 0.45);
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  font-weight: 800;
}
.hero__ticker {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--blue-accent);
}
.hero__desc {
  margin-top: 18px;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* Buttons */
.btn {
  position: relative;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}
.btn:hover::before { left: 140%; }
.btn--primary {
  background: linear-gradient(135deg, var(--red), #a5132a);
  color: #fff;
  box-shadow: 0 12px 30px rgba(227, 34, 58, 0.4);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(227, 34, 58, 0.55); }
.btn--ghost {
  border: 1px solid rgba(231, 235, 255, 0.3);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

/* Ticker strip */
.hero__ticker-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 24, 0.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track {
  display: flex;
  gap: 26px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--muted);
}
.ticker-track span:nth-child(odd) { color: var(--red-light); }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section--alt {
  background:
    linear-gradient(180deg, rgba(17, 24, 52, 0.55), rgba(11, 16, 32, 0.55)),
    var(--navy-800);
}
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(227, 34, 58, 0.4);
  background: rgba(227, 34, 58, 0.08);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; }
.section__sub { margin-top: 14px; color: var(--muted); }

/* ===== Grid & Cards ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(26, 35, 72, 0.75), rgba(11, 16, 32, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 34px 28px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: -60% -60% auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(227, 34, 58, 0.28), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s;
}
.card:hover {
  transform: translateY(-10px);
  border-color: rgba(227, 34, 58, 0.5);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5);
}
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }
.card__icon {
  font-size: 2rem;
  width: 68px; height: 68px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(227, 34, 58, 0.12);
  border: 1px solid rgba(227, 34, 58, 0.35);
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease);
}
.card:hover .card__icon { transform: scale(1.12) rotate(-6deg); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ===== Stats ===== */
.stats {
  padding: 54px 0;
  background: linear-gradient(135deg, rgba(227, 34, 58, 0.14), rgba(26, 35, 72, 0.7));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--red-light);
  text-shadow: 0 0 26px rgba(227, 34, 58, 0.55);
}
.stat__label { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.06em; }

/* ===== Tokenomics ===== */
.tokenomics {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.tokenomics__chart { display: grid; place-items: center; }
.donut {
  position: relative;
  width: min(320px, 74vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    #e3223a 0turn 0turn,
    #ff6b7a 0turn 0turn,
    #3b4a7a 0turn 0turn,
    #8fa1ff 0turn 0turn,
    #c9d2ff 0turn 0turn
  );
  box-shadow: 0 0 60px rgba(227, 34, 58, 0.3), inset 0 0 40px rgba(0, 0, 0, 0.4);
  animation: spin-slow 26s linear infinite;
}
.donut::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}
.donut__hole {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--navy-800);
  display: grid;
  place-content: center;
  text-align: center;
  animation: spin-slow-rev 26s linear infinite;
  box-shadow: inset 0 6px 22px rgba(0, 0, 0, 0.65);
}
.donut__hole strong { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; line-height: 1; }
.donut__hole span { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.tokenomics__legend { display: grid; gap: 20px; }
.legend-row {
  display: grid;
  grid-template-columns: 14px 130px 1fr 54px;
  align-items: center;
  gap: 14px;
}
.legend-dot {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--c);
  box-shadow: 0 0 14px var(--c);
}
.legend-name { font-weight: 600; font-size: 0.95rem; }
.legend-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.legend-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c), rgba(255, 255, 255, 0.55));
  transition: width 1.3s var(--ease);
}
.legend-val { text-align: right; font-weight: 700; color: var(--red-light); }

/* ===== Roadmap timeline ===== */
.timeline {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding-left: 10px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 30px; top: 6px; bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--blue-accent), transparent);
}
.timeline__item {
  position: relative;
  display: flex;
  gap: 30px;
  padding-bottom: 44px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: relative;
  z-index: 1;
  flex: 0 0 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--navy-700);
  border: 2px solid var(--red);
  color: var(--red-light);
  box-shadow: 0 0 0 6px rgba(227, 34, 58, 0.12), 0 0 24px rgba(227, 34, 58, 0.45);
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s;
}
.timeline__item:hover .timeline__dot {
  transform: scale(1.14);
  background: var(--red);
  color: #fff;
}
.timeline__body {
  background: linear-gradient(160deg, rgba(26, 35, 72, 0.7), rgba(11, 16, 32, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 24px 26px;
  flex: 1;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.timeline__item:hover .timeline__body {
  transform: translateX(8px);
  border-color: rgba(227, 34, 58, 0.45);
}
.timeline__phase {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.timeline__body h3 { margin: 6px 0 6px; font-size: 1.2rem; }
.timeline__body p { color: var(--muted); font-size: 0.95rem; }

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(227, 34, 58, 0.28), transparent 60%),
    var(--navy-900);
}
.cta__inner { display: grid; justify-items: center; gap: 14px; }
.cta__logo {
  width: 130px;
  animation: coin-float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 16px 40px rgba(227, 34, 58, 0.55));
}
.cta h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.cta p { color: var(--muted); max-width: 520px; }
.cta .hero__actions { justify-content: center; }

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 46px 0 34px;
}
.footer__inner {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}
.footer__brand { display: flex; align-items: center; gap: 12px; letter-spacing: 0.14em; }
.footer__brand img { width: 42px; animation: float 4s ease-in-out infinite; }
.footer__brand b { color: var(--red); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer__links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.25s, transform 0.25s;
}
.footer__links a:hover { color: var(--red-light); transform: translateY(-2px); }
.footer__note { color: #6d78a3; font-size: 0.82rem; max-width: 640px; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Keyframes ===== */
@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes coin-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-22px) rotate(2deg); }
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes fade-blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes orb-move {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(70px, 50px) scale(1.18); }
}
@keyframes spin-slow { to { transform: rotate(1turn); } }
@keyframes spin-slow-rev { to { transform: rotate(-1turn); } }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 34px; }
  .hero__coin-img { width: min(300px, 66vw); }
  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .tokenomics { grid-template-columns: 1fr; gap: 44px; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    width: min(320px, 84vw);
    height: calc(100vh - var(--nav-h));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 26px 22px;
    background: rgba(7, 11, 24, 0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(105%);
    transition: transform 0.42s var(--ease);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__link { padding: 14px 16px; font-size: 1.02rem; }
  .nav__link::after { display: none; }
  .nav__link--cta { text-align: center; margin-top: 10px; }

  .section { padding: 74px 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .legend-row { grid-template-columns: 14px 92px 1fr 48px; gap: 10px; }
  .legend-name { font-size: 0.86rem; }

  .timeline::before { left: 24px; }
  .timeline__dot { flex: 0 0 48px; height: 48px; font-size: 0.92rem; }
  .timeline__item { gap: 18px; }
}

@media (max-width: 480px) {
  .stats__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}
