:root {
  color-scheme: light;
  --page: #ece7dd;
  --surface: #fffaf0;
  --ink: #172126;
  --muted: #66727a;
  --line: #d7cdbc;
  --charcoal: #11191d;
  --charcoal-2: #1d2a2f;
  --emerald: #158466;
  --emerald-dark: #0d5a48;
  --copper: #d79239;
  --copper-dark: #9c5d17;
  --ruby: #a63d40;
  --cream: #fff5df;
  --soft: #e3eee8;
  --shadow: 0 18px 48px rgba(17, 25, 29, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #11191d 0 25rem, var(--page) 25rem 100%);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header,
main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 12px 0;
  background: rgba(17, 25, 29, 0.96);
  box-shadow: 0 0 0 100vmax rgba(17, 25, 29, 0.96);
  clip-path: inset(0 -100vmax);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(215, 146, 57, 0.65);
  border-radius: 8px;
  background: var(--cream);
  color: var(--copper-dark);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0 11px;
  color: #dce5e3;
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover {
  border-color: rgba(215, 146, 57, 0.8);
  color: #ffd089;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: 24px;
  align-items: center;
  min-height: 430px;
  padding: 34px 0 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #11191d 0%, #203238 58%, #402a1a 100%);
  box-shadow: 0 0 0 100vmax #11191d;
  clip-path: inset(0 -100vmax);
}

.hero-copy,
.rate-panel,
.section,
.facts div,
.guide article {
  border-radius: 8px;
}

.hero-copy {
  min-width: 0;
  color: white;
}

.hero-copy::after {
  content: "GBP / TRY   Canli kur   5 dk cache";
  display: grid;
  align-items: center;
  width: min(100%, 620px);
  min-height: 54px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 5px solid var(--copper);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 16px;
  color: #e5eeeb;
  font-weight: 850;
  word-spacing: 0.25rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 7.2vw, 6rem);
  line-height: 0.94;
  font-weight: 900;
}

.lede {
  max-width: 660px;
  margin: 16px 0 0;
  color: #d5dedb;
  font-size: clamp(1.04rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.rate-panel,
.section {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.rate-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.rate-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--copper), var(--emerald), var(--ruby));
}

.rate-topline,
.row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rate-topline {
  color: #59666d;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.icon-button,
.swap-button,
.secondary-button,
.quick-values button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: white;
  font-size: 1.05rem;
}

.primary-rate {
  margin: 22px 0 16px;
  color: var(--emerald-dark);
  font-size: clamp(2.35rem, 4.6vw, 4.1rem);
  font-weight: 950;
  line-height: 1;
}

.quote-grid,
.facts,
.guide-grid {
  display: grid;
  gap: 10px;
}

.quote-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-grid div,
.facts div,
.guide article {
  border: 1px solid var(--line);
  background: white;
}

.quote-grid div {
  padding: 13px;
}

.quote-grid span,
.facts span {
  display: block;
  margin-bottom: 5px;
  color: #69747b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-grid strong,
.facts strong {
  font-size: 1.05rem;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.rate-panel .muted {
  margin-bottom: 0;
  font-weight: 700;
}

.section {
  margin: 16px 0;
  padding: 22px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.converter-section {
  border-top: 5px solid var(--emerald);
}

.converter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #66727a;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid #d8cebd;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 900;
  outline: none;
}

input:focus,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(215, 146, 57, 0.38);
  outline-offset: 3px;
}

.swap-button {
  width: 48px;
  height: 58px;
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: white;
  font-size: 1.08rem;
}

.quick-values {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 10px;
}

.quick-values button,
.secondary-button {
  min-height: 44px;
  padding: 0 12px;
}

.quick-values button:hover,
.secondary-button:hover,
.icon-button:hover,
.swap-button:hover {
  border-color: var(--copper-dark);
  background: #fff0cf;
  color: var(--copper-dark);
}

.facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.facts div {
  min-height: 96px;
  border: 0;
  border-radius: 0;
  padding: 17px 18px;
}

.facts div:nth-child(1) {
  border-top: 4px solid var(--copper);
}

.facts div:nth-child(2) {
  border-top: 4px solid var(--emerald);
}

.facts div:nth-child(3) {
  border-top: 4px solid var(--ruby);
}

.table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid #e8dfcf;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #6a747b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  font-weight: 750;
}

tr:last-child td {
  border-bottom: 0;
}

.currency-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.currency-chip {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--emerald-dark);
  font-size: 0.76rem;
  font-weight: 950;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.guide article {
  min-height: 172px;
  padding: 18px;
}

.guide article:nth-child(1) {
  border-top: 5px solid var(--copper);
}

.guide article:nth-child(2) {
  border-top: 5px solid var(--emerald);
}

.guide article:nth-child(3) {
  border-top: 5px solid var(--ruby);
}

.guide h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.guide p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 15px 17px;
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 880px) {
  .site-header,
  main,
  .footer {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    display: grid;
    align-items: start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .converter,
  .facts,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 28px 0 20px;
  }

  .quick-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .facts {
    gap: 0;
  }

  .swap-button {
    justify-self: center;
    width: 58px;
  }
}

@media (max-width: 560px) {
  body {
    background: linear-gradient(180deg, #11191d 0 31rem, var(--page) 31rem 100%);
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.35rem);
  }

  .hero-copy::after,
  .quote-grid,
  .quick-values {
    grid-template-columns: 1fr;
  }

  .hero-copy::after {
    min-height: 66px;
    line-height: 1.5;
    word-spacing: normal;
  }

  .rate-panel,
  .section {
    padding: 16px;
  }

  .primary-rate {
    font-size: 2.35rem;
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  table {
    min-width: 100%;
  }

  th,
  td {
    padding: 10px 6px;
  }

  th:nth-child(4),
  td:nth-child(4),
  th:nth-child(5),
  td:nth-child(5) {
    display: none;
  }
}
