/* Fifth Harbor — Apple-inspired static website
   Gratis te hosten via Cloudflare Pages / GitHub Pages.
*/

:root {
  --bg: #06111d;
  --bg-2: #071a2b;
  --panel: rgba(11, 27, 43, 0.68);
  --panel-strong: rgba(12, 31, 50, 0.92);
  --text: #f7fbff;
  --muted: #9fb4c7;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #4cc9ff;
  --blue-2: #0b78b6;
  --cyan: #9be8ff;
  --white-soft: rgba(255,255,255,.86);
  --shadow: 0 28px 90px rgba(0, 0, 0, .48);
  --radius: 30px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 10%, rgba(76, 201, 255, .20), transparent 32rem),
    radial-gradient(circle at 12% 70%, rgba(11, 120, 182, .22), transparent 26rem),
    linear-gradient(180deg, #06111d 0%, #071626 48%, #03070c 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: .13;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,.035), rgba(255,255,255,.035)),
    repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}
.cursor-glow {
  position: fixed; width: 34rem; height: 34rem; border-radius: 999px;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 1; opacity: .45;
  background: radial-gradient(circle, rgba(76,201,255,.18), transparent 64%);
  filter: blur(6px); left: 50%; top: 35%; transition: opacity .5s ease;
}
.scrollbar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 80; background: rgba(255,255,255,.06); }
.scrollbar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), #fff); box-shadow: 0 0 22px rgba(76,201,255,.8); }

.site-header {
  position: fixed; top: 18px; left: 50%; z-index: 60; width: min(1120px, calc(100% - 28px));
  transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  background: rgba(6,17,29,.46); backdrop-filter: blur(28px) saturate(1.3);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
}
.mini-brand { display: inline-flex; gap: 10px; align-items: center; padding: 6px 13px 6px 7px; border-radius: 999px; }
.mini-brand img { width: 32px; height: 32px; }
.mini-brand span { font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.top-links { display: flex; gap: 4px; }
.top-links a { padding: 9px 13px; color: rgba(255,255,255,.72); border-radius: 999px; font-size: 13px; transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
.top-links a:hover { color: #fff; background: rgba(255,255,255,.10); transform: translateY(-1px); }

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 118px 24px 78px; isolation: isolate; }
.compass-hero { overflow: hidden; }
.logo-stage {
  width: min(420px, 76vw); margin: 0 auto 28px; padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.035)), rgba(7, 20, 33, .72);
  backdrop-filter: blur(34px); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.16);
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .2s ease-out;
}
.main-logo { width: 100%; display: block; filter: drop-shadow(0 16px 36px rgba(76,201,255,.14)); }
.hero-center { position: relative; z-index: 5; width: min(860px, 100%); text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-weight: 800; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
h1,h2,h3,p { text-wrap: pretty; }
.hero h1 { max-width: 850px; margin: 0 auto; font-size: clamp(46px, 8.8vw, 112px); line-height: .88; letter-spacing: -.075em; font-weight: 800; }
.hero-copy { max-width: 680px; margin: 26px auto 0; color: rgba(247,251,255,.72); font-size: clamp(17px, 2.2vw, 22px); line-height: 1.55; }

.orb { position: absolute; border-radius: 999px; pointer-events: none; z-index: -2; filter: blur(4px); opacity: .8; }
.orb-one { width: 36rem; height: 36rem; right: -10rem; top: 12vh; background: radial-gradient(circle, rgba(76,201,255,.22), rgba(11,120,182,.06), transparent 70%); animation: floatA 12s var(--ease) infinite alternate; }
.orb-two { width: 28rem; height: 28rem; left: -8rem; bottom: 5vh; background: radial-gradient(circle, rgba(155,232,255,.14), rgba(11,120,182,.08), transparent 72%); animation: floatB 14s var(--ease) infinite alternate; }
.harbor-rings { position: absolute; width: min(72vw, 760px); aspect-ratio: 1; border-radius: 999px; border: 1px solid rgba(255,255,255,.11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 120px rgba(76,201,255,.08); z-index: -1; animation: slowSpin 28s linear infinite; }
.harbor-rings::before,.harbor-rings::after { content: ""; position: absolute; border-radius: 999px; inset: 13%; border: 1px solid rgba(255,255,255,.08); }
.harbor-rings::after { inset: 28%; border-style: dashed; border-color: rgba(76,201,255,.22); }
.sea-grid { position: absolute; inset: auto -10vw -22vh; height: 46vh; z-index: -3; background-image: linear-gradient(rgba(76,201,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(76,201,255,.08) 1px, transparent 1px); background-size: 90px 90px; transform: perspective(620px) rotateX(62deg); opacity: .32; mask-image: linear-gradient(to top, black, transparent); }

.compass-point {
  position: absolute; z-index: 20; display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px; height: 58px; padding: 0 20px; border-radius: 999px; color: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.13); background: rgba(6,17,29,.38); backdrop-filter: blur(20px); box-shadow: 0 12px 44px rgba(0,0,0,.18);
  transition: min-width .5s var(--ease), color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.compass-point .letter { font-size: 18px; font-weight: 800; letter-spacing: .06em; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.compass-point .word { position: absolute; opacity: 0; transform: translateY(8px) scale(.96); font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.compass-point:hover,.compass-point:focus-visible { min-width: 132px; color: #fff; background: rgba(76,201,255,.16); border-color: rgba(76,201,255,.42); box-shadow: 0 20px 65px rgba(76,201,255,.16); transform: translateZ(0) scale(1.04); }
.compass-point:hover .letter,.compass-point:focus-visible .letter { opacity: 0; transform: translateY(-8px) scale(.92); }
.compass-point:hover .word,.compass-point:focus-visible .word { opacity: 1; transform: translateY(0) scale(1); }
.north { top: 96px; left: 50%; transform: translateX(-50%); }
.north:hover { transform: translateX(-50%) scale(1.04); }
.south { bottom: 48px; left: 50%; transform: translateX(-50%); }
.south:hover { transform: translateX(-50%) scale(1.04); }
.east { right: 34px; top: 50%; transform: translateY(-50%); }
.east:hover { transform: translateY(-50%) scale(1.04); }
.west { left: 34px; top: 50%; transform: translateY(-50%); }
.west:hover { transform: translateY(-50%) scale(1.04); }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; z-index: 12; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); color: rgba(255,255,255,.52); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 42px; overflow: hidden; background: rgba(255,255,255,.18); }
.scroll-cue i::after { content: ""; display: block; width: 1px; height: 18px; background: var(--blue); animation: scrollLine 1.4s ease infinite; }

.section { position: relative; padding: clamp(88px, 14vw, 180px) 24px; }
.section-inner { width: min(1120px, 100%); margin: 0 auto; }
.sail-intro .section-inner,.cinematic .section-inner,.cta-section .section-inner { text-align: center; max-width: 880px; }
.section h2,.page-hero h1 { margin: 0; font-size: clamp(44px, 7.2vw, 96px); line-height: .94; letter-spacing: -.066em; font-weight: 800; }
.section p,.page-hero p { color: rgba(247,251,255,.70); font-size: clamp(17px, 2vw, 22px); line-height: 1.58; }
.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.glass-card,.direction-card,.post-card,.form-shell,.shop-card,.timeline-item {
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035)), rgba(8, 22, 36, .62);
  backdrop-filter: blur(28px) saturate(1.18); border-radius: var(--radius); box-shadow: var(--shadow);
}
.glass-card { min-height: 420px; padding: clamp(28px, 4vw, 46px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative; }
.glass-card::before { content: ""; position: absolute; width: 22rem; height: 22rem; right: -9rem; top: -10rem; border-radius: 999px; background: radial-gradient(circle, rgba(76,201,255,.22), transparent 68%); }
.card-number { position: absolute; top: 28px; left: 30px; color: rgba(255,255,255,.34); font-weight: 800; letter-spacing: .12em; }
.glass-card h3,.direction-card h3,.post-card h2,.shop-card h2,.timeline-item h3 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.045em; line-height: 1; }
.glass-card p,.direction-card p,.post-card p,.shop-card p,.timeline-item p { margin: 0; color: rgba(247,251,255,.66); line-height: 1.55; font-size: 16px; }
.section-heading { margin-bottom: 28px; text-align: center; }
.direction-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.direction-card { position: relative; min-height: 310px; padding: 26px; overflow: hidden; transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease); }
.direction-card:hover { transform: translateY(-8px); border-color: rgba(76,201,255,.42); background: linear-gradient(180deg, rgba(76,201,255,.13), rgba(255,255,255,.035)), rgba(8, 22, 36, .72); }
.direction-card span { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 120px; border-radius: 18px; background: rgba(255,255,255,.09); color: var(--cyan); font-weight: 900; font-size: 19px; }
.cinematic { background: radial-gradient(circle at 50% 50%, rgba(76,201,255,.12), transparent 40rem), linear-gradient(180deg, transparent, rgba(255,255,255,.025), transparent); }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.timeline-item { padding: 24px; min-height: 270px; }
.timeline-item strong { display: block; color: var(--blue); font-size: 12px; letter-spacing: .2em; margin-bottom: 90px; }
.button-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); cursor: pointer; transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #00111d; border-color: transparent; background: linear-gradient(135deg, #fff, var(--cyan) 42%, var(--blue)); font-weight: 800; box-shadow: 0 18px 48px rgba(76,201,255,.24); }
.button.ghost { color: #fff; background: rgba(255,255,255,.075); }
.site-footer { display: flex; justify-content: space-between; gap: 18px; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 44px; color: rgba(255,255,255,.46); border-top: 1px solid rgba(255,255,255,.10); font-size: 13px; }
.site-footer a:hover { color: #fff; }

/* Inner pages */
.page { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 150px 0 70px; }
.page-hero { max-width: 900px; margin-bottom: 54px; }
.page-hero p { max-width: 720px; }
.news-list { display: grid; gap: 14px; }
.post-card { display: flex; justify-content: space-between; gap: 28px; align-items: center; padding: clamp(22px, 4vw, 38px); }
.post-card time { display: block; margin-bottom: 14px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.post-card a { flex: 0 0 auto; color: #00111d; background: #fff; border-radius: 999px; padding: 13px 17px; font-weight: 800; font-size: 13px; }
.form-shell { padding: clamp(20px, 4vw, 42px); }
.enter-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.enter-form label { display: grid; gap: 9px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; }
.enter-form .full { grid-column: 1 / -1; }
input,select,textarea { width: 100%; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(0,0,0,.22); padding: 15px 16px; outline: none; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
textarea { resize: vertical; }
input:focus,select:focus,textarea:focus { border-color: rgba(76,201,255,.60); box-shadow: 0 0 0 4px rgba(76,201,255,.12); }
.form-note { grid-column: 1 / -1; margin: -3px 0 0; color: rgba(255,255,255,.48); font-size: 13px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.shop-card { padding: 20px; }
.mock-product { display: grid; place-items: center; height: 360px; margin-bottom: 24px; border-radius: 25px; background: radial-gradient(circle at 50% 20%, rgba(76,201,255,.22), transparent 35%), linear-gradient(135deg, #091724, #0a2237 55%, #03070d); border: 1px solid rgba(255,255,255,.10); }
.mock-product span { display: grid; place-items: center; width: 118px; height: 118px; border-radius: 35px; background: rgba(255,255,255,.10); color: #fff; font-size: 28px; font-weight: 900; letter-spacing: -.08em; }
.mock-product.hoodie { border-radius: 60px 60px 25px 25px; }
.mock-product.cap { height: 260px; border-radius: 999px 999px 34px 34px; }
.shop-card .button { margin-top: 20px; width: 100%; }

.reveal { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(7px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; filter: blur(0); }

@keyframes floatA { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-4rem, 3rem,0) scale(1.08); } }
@keyframes floatB { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(5rem,-2rem,0) scale(.96); } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes scrollLine { from { transform: translateY(-20px); opacity: 0; } 35% { opacity: 1; } to { transform: translateY(46px); opacity: 0; } }

@media (max-width: 900px) {
  .top-links { display: none; }
  .hero { padding-top: 120px; }
  .north { top: 90px; }
  .south { bottom: 58px; }
  .east { right: 16px; }
  .west { left: 16px; }
  .compass-point { min-width: auto; height: auto; padding: 10px 13px; gap: 7px; }
  .compass-point .letter { opacity: 1; transform: none; font-size: 13px; }
  .compass-point .word { position: static; opacity: 1; transform: none; font-size: 11px; }
  .compass-point:hover .letter { opacity: 1; transform: none; }
  .grid.two,.direction-grid,.timeline,.shop-grid { grid-template-columns: 1fr; }
  .direction-card,.timeline-item { min-height: auto; }
  .direction-card span,.timeline-item strong { margin-bottom: 60px; }
  .post-card { align-items: flex-start; flex-direction: column; }
  .enter-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .page { width: min(100% - 28px, 1120px); padding-top: 130px; }
  .site-footer { width: calc(100% - 28px); flex-direction: column; }
  .logo-stage { border-radius: 30px; }
  .hero-copy { font-size: 16px; }
  .west,.east { top: auto; bottom: 118px; transform: none; }
  .west { left: 16px; }
  .east { right: 16px; }
  .west:hover,.east:hover { transform: scale(1.02); }
  .south { bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
