/* ============================================
   ICE BEER — Shared core styles
   ============================================ */

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

:root {
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ====== Animated background layers ====== */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-gradient);
  pointer-events: none;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Bubbles rising */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--bubble-hl), var(--bubble) 60%, transparent 70%);
  border: 1px solid var(--bubble-border);
  animation: rise linear infinite;
  opacity: 0;
}

@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(0.4); opacity: 0; }
  10%  { opacity: var(--bubble-opacity, 0.45); }
  50%  { transform: translateY(-50vh) translateX(20px) scale(1); }
  90%  { opacity: var(--bubble-opacity, 0.45); }
  100% { transform: translateY(-110vh) translateX(-10px) scale(1.1); opacity: 0; }
}

/* ====== Page wrapper ====== */
.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px) 80px;
}

/* ====== Header / brand ====== */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(24px, 4vw, 44px);
  text-align: center;
  animation: fadeDown 0.9s var(--easing) both;
}

.brand-mark {
  width: clamp(260px, 42vw, 440px);
  max-width: 92vw;
  height: auto;
  display: grid;
  place-items: center;
  position: relative;
  padding: 6px 14px;
  animation: float 6s ease-in-out infinite;
}

.brand-mark img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px var(--mark-shadow));
}

.brand-mark::after {
  display: none;
}

/* Hide the now-redundant ICE BEER wordmark since it's in the logo */
.brand-name {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.brand-name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 7vw, 84px);
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--brand-color);
  text-transform: uppercase;
}

.brand-name span {
  color: var(--brand-accent);
  display: inline-block;
  transform: skewX(-6deg);
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  color: var(--tag-text);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.brand-tag::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tag-dot);
  box-shadow: 0 0 12px var(--tag-dot);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ====== Section title ====== */
.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--section-title);
  margin: 18px 0 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fadeDown 0.9s 0.15s var(--easing) both;
}

.section-title::before,
.section-title::after {
  content: '';
  height: 1px;
  width: clamp(30px, 6vw, 80px);
  background: linear-gradient(90deg, transparent, var(--section-title), transparent);
}

/* ====== Cards container ====== */
.cards {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ====== Card ====== */
.card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--card-text);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    transform 0.4s var(--easing),
    background 0.3s var(--easing),
    border-color 0.3s var(--easing),
    box-shadow 0.4s var(--easing);
  box-shadow: 0 8px 24px var(--card-shadow);
  animation: cardIn 0.7s var(--easing) both;
  animation-delay: calc(var(--i, 0) * 80ms + 0.25s);
  will-change: transform;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) perspective(900px); }
  to   { opacity: 1; transform: translateY(0) perspective(900px); }
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-shine);
  opacity: 0;
  transition: opacity 0.4s var(--easing);
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--card-sweep) 50%, transparent);
  transition: left 0.6s var(--easing);
  pointer-events: none;
  transform: skewX(-20deg);
}

.card:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 48px var(--card-shadow-hover);
}

.card:hover::before { opacity: 1; }
.card:hover::after  { left: 130%; }

.card:active {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(2px) scale(0.99);
}

.card-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  color: var(--icon-color);
  position: relative;
  transition: transform 0.4s var(--easing-spring);
}

.card:hover .card-icon {
  transform: scale(1.06) rotate(-4deg);
}

.card-icon svg {
  width: 26px; height: 26px;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--card-title);
  line-height: 1.2;
}

.card-sub {
  font-size: 13px;
  color: var(--card-sub);
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--arrow-bg);
  color: var(--arrow-color);
  transition: transform 0.4s var(--easing-spring), background 0.3s ease;
}

.card:hover .card-arrow {
  transform: translateX(4px) rotate(-12deg);
  background: var(--arrow-bg-hover);
}

.card-arrow svg { width: 16px; height: 16px; }

/* ====== Footer ====== */
.foot {
  margin-top: clamp(34px, 5vw, 54px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--foot-color);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeDown 1s 0.6s var(--easing) both;
}

.foot-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.foot-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--foot-pill-bg);
  border: 1px solid var(--foot-pill-border);
  color: var(--foot-pill-text);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  transition: all 0.3s var(--easing);
}

.foot-nav a:hover {
  background: var(--foot-pill-bg-hover);
  color: var(--foot-pill-text-hover);
  transform: translateY(-2px);
}

.foot-nav a.current {
  background: var(--foot-pill-bg-current);
  color: var(--foot-pill-text-current);
  border-color: var(--foot-pill-bg-current);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== Mobile ====== */
@media (max-width: 520px) {
  .card { padding: 16px 16px; gap: 14px; }
  .card-icon { width: 48px; height: 48px; }
  .card-icon svg { width: 22px; height: 22px; }
  .card-title { font-size: 15px; }
  .card-sub { font-size: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
