:root {
  --deep: #060a06;
  --bg: #090e09;
  --primary: #2d4f26;
  --primary-light: #44743c;
  --ocean: #44743c;
  --sky: #44743c;
  --accent: #e53935;
  --accent-hover: #c62828;
  --gold: #ffb300;
  --card: #121c12;
  --ink: #ffffff;
  --text-light: #ffffff;
  --text-muted: #a3b8a3;
  --muted: #a3b8a3;
  --line: rgba(255, 255, 255, 0.09);
  --ok: #2e9e6b;
  --bad: #e57373;
  --glow: rgba(45, 79, 38, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(45, 79, 38, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(229, 57, 53, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, .brand-logo { font-family: 'Outfit', sans-serif; }
svg { display: block; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }
select option { background: #0f1a10; color: var(--ink); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section[id] { scroll-margin-top: 78px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 6, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-logo { height: 42px; width: auto; max-width: 160px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.2px; }
.brand-text small { font-size: 0.72rem; color: var(--muted); }
.site-nav { display: flex; gap: 6px; margin: 0 auto; }
.site-nav a {
  color: #cfe4d6;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.social-links { display: flex; gap: 8px; align-items: center; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: var(--transition);
}
.social-links a:hover { background: var(--accent); transform: translateY(-2px); }
.social-links svg { width: 17px; height: 17px; fill: currentColor; }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at top right, var(--primary), #000);
  color: #fff;
  padding: 88px 0 0;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 0 25px;
}
.hero-content {
  flex: 1;
  max-width: 580px;
  animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 79, 38, 0.3);
  border: 1px solid rgba(68, 116, 60, 0.4);
  color: #8ed682;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.promo-tag .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -1px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-light) 60%, #b2d2b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content h1 span {
  display: block;
  background: linear-gradient(135deg, #e53935, #ffb300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 35px;
}
.cta-group {
  display: flex;
  gap: 20px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 16px 32px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(229, 57, 53, 0.35);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(229, 57, 53, 0.5);
}
.btn-secondary {
  padding: 16px 32px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover {
  border-color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}
.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
}
.stat-item { display: flex; flex-direction: column; gap: 5px; }
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
  font-family: 'Outfit', sans-serif;
}
.stat-number span { color: var(--accent); }
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fisherman-container {
  width: 420px;
  height: 420px;
  flex: none;
  background: radial-gradient(circle at center, var(--primary), #112011);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 5s infinite ease-in-out;
  position: relative;
  border: 4px solid #ffffff;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(45, 79, 38, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}
.fisherman-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(142, 214, 130, 0.15) 0%, transparent 70%);
  z-index: -1;
  border-radius: 70px;
  pointer-events: none;
}
.fisherman-img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.65));
  transform: scale(1.05);
  transition: var(--transition);
  pointer-events: none;
}
.fisherman-container:hover .fisherman-img {
  transform: scale(1.1) translateY(-10px);
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.8));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 48px 0 22px; }
.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}
.hero-card:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-3px); }
.hero-icon svg { width: 30px; height: 30px; }
.hero-big { font-size: 1.35rem; font-weight: 700; color: #fff; font-family: 'Outfit', sans-serif; }
.hero-small { font-size: 0.8rem; color: #b9d0c0; }
.hero-update { font-size: 0.82rem; color: var(--muted); padding-bottom: 48px; }
.hero-update button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.82rem;
}
.hero-update button:hover { background: rgba(255, 255, 255, 0.12); }
.hero-update button:disabled { opacity: 0.6; }
.hero-wave { margin-top: auto; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

.banner {
  margin-top: 18px;
  background: rgba(211, 47, 47, 0.15);
  border: 1px solid rgba(211, 47, 47, 0.45);
  color: #ffb3ad;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.section { padding: 56px 0; }
.section-alt { background: #101a10; }
.section-title { font-size: 1.55rem; margin-bottom: 22px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: #fff; font-weight: 700; }
.section-sub { font-size: 0.85rem; color: var(--muted); font-weight: 400; font-family: 'Inter', sans-serif; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 24px rgba(45, 79, 38, 0.08);
  transition: var(--transition);
}
.card:hover { border-color: rgba(255, 255, 255, 0.18); }
.card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b9d0c0;
  margin-bottom: 10px;
}
.margintop { margin-top: 34px; }
.big { font-size: 1.6rem; font-weight: 700; color: #fff; font-family: 'Outfit', sans-serif; }
.muted { color: var(--muted); font-size: 0.88rem; }
.disclaimer { margin-top: 14px; font-size: 0.78rem; color: var(--muted); }

.current-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 12px; }
.current-main { display: flex; align-items: center; gap: 16px; }
.cur-icon svg { width: 52px; height: 52px; }
.cur-temp { font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: #fff; font-family: 'Outfit', sans-serif; }
.cur-desc { font-weight: 600; }
.cur-feels { color: var(--muted); font-size: 0.85rem; }

.daily-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 14px; }
.daily-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.82rem;
}
.daily-day { font-weight: 700; text-transform: capitalize; color: #fff; }
.daily-icon { display: flex; justify-content: center; margin: 6px 0; }
.daily-icon svg { width: 30px; height: 30px; }
.daily-temp { font-size: 1rem; }
.daily-temp .hi { font-weight: 700; color: #fff; }
.daily-temp .lo { color: var(--muted); }
.daily-desc { min-height: 2.4em; }
.daily-meta { color: var(--muted); font-size: 0.72rem; margin-top: 4px; }

.tide-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.tide-next .big { font-size: 1.25rem; }
.moon-row { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.moon-icon { width: 58px; height: 58px; flex: none; }
.tide-chart-card { margin-bottom: 12px; }
#tideChart { width: 100%; height: auto; }
#tideChart .grid line { stroke: #2a3d2c; stroke-width: 1; }
#tideChart .grid text { font-size: 10px; fill: var(--muted); text-anchor: end; }
#tideChart text.point-label { font-size: 10px; fill: var(--ink); font-weight: 600; }
#tideChart text.now-label { font-size: 10px; font-weight: 700; fill: var(--bad); }
#tideChart .tide-line { stroke: var(--ocean); stroke-width: 2.4; fill: none; }
#tideChart .tide-fill { fill: rgba(68, 116, 60, 0.2); }
#tideChart .point-high { fill: var(--gold); stroke: #fff; stroke-width: 1.4; }
#tideChart .point-low { fill: #3d9b6f; stroke: #fff; stroke-width: 1.4; }
#tideChart .now-line { stroke: var(--bad); stroke-width: 1.6; stroke-dasharray: 5 4; }

.tide-bottom { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; }
.tide-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tide-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  padding: 6px 10px;
  background: #152217;
  border-radius: 8px;
}
.tide-list li.next { background: rgba(255, 179, 0, 0.12); border: 1px solid #f3d98b; font-weight: 600; color: var(--gold); }
.tide-list .muted { border: none; background: none; }

.score-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.score-num { font-size: 2.4rem; font-weight: 800; color: var(--primary-light); font-family: 'Outfit', sans-serif; }
.score-label { font-weight: 700; color: #fff; }
.score-bar { height: 10px; background: #1a281c; border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.score-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--ok));
  transition: width 0.5s ease;
}
.factor-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; }
.factor-list li { display: grid; grid-template-columns: 1fr 60px 30px; gap: 8px; align-items: center; }
.factor-name { min-width: 0; }
.factor-name small { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.factor-list li strong { text-align: right; font-size: 0.9rem; color: #fff; }
.mini-bar { height: 7px; background: #1a281c; border-radius: 999px; overflow: hidden; display: block; }
.mini-bar i { display: block; height: 100%; background: var(--sky); border-radius: 999px; }

.reports-grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.report-form { display: flex; flex-direction: column; gap: 12px; }
.report-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.report-form input,
.report-form select,
.report-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: #0f1a10;
  color: var(--ink);
  width: 100%;
}
.report-form input:focus,
.report-form select:focus,
.report-form textarea:focus {
  outline: 2px solid var(--sky);
  border-color: var(--sky);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.muted-inline { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.foto-preview {
  max-width: 100%;
  max-height: 140px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.report-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 4, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.btn {
  background: var(--primary-light);
  color: #061306;
  border: none;
  border-radius: 9px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn:hover { background: #4da06f; transform: translateY(-1px); }

.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-card { display: flex; flex-direction: column; gap: 10px; }
.report-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.report-head h3 { font-size: 1.05rem; color: #fff; }
.report-head time { color: var(--muted); font-size: 0.8rem; }
.report-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: var(--primary-light); color: #061306; border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; font-weight: 700; }
.tag { background: rgba(255, 255, 255, 0.09); color: #8fd6a8; border-radius: 999px; padding: 3px 12px; font-size: 0.8rem; font-weight: 600; }
.report-text { font-size: 0.95rem; }
.report-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.btn-del {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
}
.btn-del:hover { color: #ff9d97; border-color: rgba(229, 115, 115, 0.5); background: rgba(211, 47, 47, 0.12); }
.chips { display: flex; gap: 6px; }
.chips span { background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 2px 9px; font-size: 0.74rem; color: #b9d0c0; }

.site-footer { background: var(--deep); color: #9db8a5; padding: 40px 0 24px; font-size: 0.88rem; }
.footer-grid {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom { padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.footer-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: #7d9687;
  font-size: 0.85rem;
}
.footer-inline a { color: #9db8a5; text-decoration: none; transition: var(--transition); }
.footer-inline a:hover { color: #fff; }
.footer-bottom p { color: #7d9687; }
.footer-bottom .small { font-size: 0.74rem; }

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .cta-group, .hero-stats { justify-content: center; }
  .fisherman-container { width: 300px; height: 300px; }
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .current-grid { grid-template-columns: 1fr 1fr; }
  .daily-grid { grid-template-columns: repeat(3, 1fr); }
  .tide-top { grid-template-columns: 1fr; }
  .tide-bottom { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-nav { display: none; }
  .fisherman-container { width: 260px; height: 260px; border-radius: 36px; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.4rem; }
  .daily-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cards { grid-template-columns: 1fr; }
  .current-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}